Question 5
Consider the below C program.
#include <stdio.h>
int main() { int x = 5, y = 3, z = 7; int result = (x > y) && (y < z);
printf("%d\n", result); return 0;}What will be the output of the above program?
0
1
2
3
Consider the below C program.
#include <stdio.h>
int main() { int x = 5, y = 3, z = 7; int result = (x > y) && (y < z);
printf("%d\n", result); return 0;}What will be the output of the above program?
0
1
2
3
Correct answer
1
Question 5 of 16 in the IIT Madras BS Introduction to C Programming (Intro to C Programming) Qualifier paper sat on 1 Sept 2024, in the May 2024 term (IIT M ES REATTEMPT AN EXAM QEF1 01 Sep 2024). It carries 4 marks.