Interview Question 3572

Created by admin on Sat, 17/11/2012 - 12:40
Explanation: 
The rule is that a variable is available for use from the point of declaration. Even though a is a global variable, it is not available for main. Hence an error.
Question: 

main()
{
printf("%d", out);
}
int out=100;

Language: 
Answer: 

100