Q. What is the output of the following code snippet? int x = 5; cout << x++;
β
Correct Answer: (A)
5
Explanation: The post-increment operator (x++) returns the original value of x before incrementing it.