0
What is the output of the following C program?
#include <stdio.h>
int main() {
int a = 0, b = 5, c;
c = (a++ && b++) || (++b > 5);
printf("%d %d %d", a, b, c);
return 0;
}- A1 7 1
- B1 6 1
- C0 6 1
- D1 5 0
Correct answer: B
What is the output of the following C program?
#include <stdio.h>
int main() {
int a = 0, b = 5, c;
c = (a++ && b++) || (++b > 5);
printf("%d %d %d", a, b, c);
return 0;
}