-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int num = 12;
if (num == num--)
printf("TRUE 1\t");
num = 10;
if (num == --num)
printf("TRUE 2\t");
}
-
- TRUE 2
- TRUE 1
- Compilation Error
- Runtime Error
- None of these
Correct Option: A
This is a sequence point problem and hence the result will be implementation dependent.