edited by
575 views
0 votes
0 votes

https://gateoverflow.in/45555/c-programming-predict-the-output

main()
{
    {
        extern int i;
        int i=20;
        {
            const volatile unsigned i=30; printf("%d",i);
        }
        printf("%d",i);
    }
printf("%d",i);
}
int i;

rude explained how output is printed but its giving error when i'm trying to run the program here https://ideone.com/xteXgV

edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
3
dixit bishwash asked Mar 31, 2018
1,173 views
The Correct answer is c but how?int main(){ int a=210,b=120,c; c=a>b?1,2,3:2,5,6,7; printf("%d",c);}ans:-a) 1b) 2c) 3d) Error.