Saturday 16 March 2013

Correct Global Variable


main()
{
 extern out;
 printf("%d", out);
}
 int out=100;
Answer:
100
    Explanation:
when compiler reaches to extern out then it will find it outside main and it will put out=100 as the effect of int out=100. This is correct example of previous program code.

Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment