Computer Science, asked by faithsarkar, 8 months ago

what will be the output of the following program segments . main(){intx;x=5cout<<x++;cout<<x;cout<<++x;}​

Answers

Answered by gyadav30122000
1

Explanation:

main(){intx;x=5cout<<x++;cout<<x;cout<<++x (11)

8 [6+2{5-4 (5-8)}](11)

8 [6+2{5-4 (5-8)}]+4= (1x4)+1 = 5

2+5= (2x5)+2 = 12

3+6 = (3x6)+3= 21

Applying the same trick

8+11= (8x11)+ 8= 96.

Therefore the Answer is “96”.

Similar questions