Question PRG-C-0014
MediumWhat is the output of this program?
#include <stdio.h>
int main(void) {
int a = 0, b = 0;
int r = a && (b = 1);
r = a || (b = 1);
printf("%d %d", a, b);
return 0;
}
- A.
1 1
- B.
0 1
- C.
Sign up free to see the answer and a step-by-step explanation.