edited by
376 views
2 votes
2 votes
extern int i;
int i=10;
i =5
int main()
{ printf("%d",i); return 0;}

 what will be the output?

it is a compiler error but answer given is 5

edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
2 answers
3
atulcse asked Jan 15, 2022
688 views
Consider the following programint find (int n) { int a = 1; for (i = 1; i < = n; i ++) for (j = 1; j < = i; j++) for (k = 1; k <= j, k++) a = a + 1; ...
0 votes
0 votes
3 answers
4
ramakrushna asked Dec 23, 2021
729 views
What should be the ans. Isn’t the Function initialization should be outside main function? They are given inside main. If declaration would be outside main then ans sho...