#include stdio.h

int main() {
int a = 1;
int b = 0;
int output;

if (a == 1 && b == 1) {
output = 1;
} else {
output = 0;
}

printf("a = %d, b = %d, output = %d\n", a, b, output);

return 0;
}

What is the output of the following program

Posted on by