Algorithms Quiz | SP2 Contest 1 | Question 4
What will be the output of the below C program?
x = 2;
(--x <= 2);
(A) Runtime Error
(D) Infinite Loop
Explanation: As the value of x is incremented(++x) and then decremented(–x), hence no change in the value of x will occur and it will be as 2.
Quiz of this Question
Please comment below if you find anything wrong in the above post