C | Variable Declaration and Scope | Question 5

Last Updated :
Discuss
Comments
Output? C
int main()
{
  {
      int var = 10;
  }
  {
      printf("%d", var);  
  }
  return 0;
}
10
Compiler Error
Garbage Value
Tags:
Share your thoughts in the comments