edited by
805 views

2 Answers

3 votes
3 votes
option B will be correct

Because memory for static variables is created only one time.

a-- is post decrement operation of value of a will be printed then it is decremented.

after printing 3 2 1 a value become 0.

so if(a) condition fails and program terminates
0 votes
0 votes
Ans : B

a is having post decrement  operation

Firstly value of a is  printed and then decrement operation of a will be printed .

so ,print value of a :3,2,1 ,after 1 the value of a become 0 ,condition become false  and programm terminates .
Answer:

Related questions

0 votes
0 votes
0 answers
1
admin asked Apr 1, 2020
555 views
The following program fragment printsint i = 5; do { putchar(i+100); printf(“%d”, i ;) } while(i);i5h4g3f2el14h3g2f1e0An error messageNone of the above
1 votes
1 votes
3 answers
3
2 votes
2 votes
1 answer
4
admin asked Apr 1, 2020
1,039 views
The height of a binary tree is the maximum number of edges in any root to leaf path. The maximum number number of nodes in a binary tree of height $h$ is $2^{h}$$2^{h-1} ...