what will be the output of the following program segments . main(){intx;x=5cout<<x++;cout<<x;cout<<++x;}
Answers
Answered by
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
Computer Science,
4 months ago
Math,
4 months ago
Physics,
8 months ago
Social Sciences,
11 months ago
Biology,
11 months ago