Q. What will be the output of the following code?
Code:#include <stdio.h>
int main() {
int a = 5;
printf("%d", a++);
return 0;
}
β
Correct Answer: (A)
5
Explanation: Post-increment returns the original value before incrementing, so 'a++' prints 5.