What will be the output of the following C code?
#include <stdio.h> int main() { int a = 1; if (a--) printf("True"); if (a++) printf("False"); }
Select one:
a. True
b. False
c. True False
d. None
Answers
Answered by
1
Answer:
its true
Explanation:
in 1st if - its post increment so value of a wont change
after true
a=0
now in 2nd if - its post increment again but now the value is 0
it won't execute
Similar questions