int d=9; (d++);(d++);(++d)
Answers
Answered by
0
After Execution:
d = 12
Answered by
1
Question:-
Write the output of the following code.
Working out:-
Given code,
int d=9;
d++;
d++:
++d;
Output is:- d=12
int d=9; (d is initialised as 9 here.)
d++; (d becomes 10)
d++; (d becomes 11)
++d; (d becomes 12)
Hence, the value of d is 12.
Similar questions