C Programming

Find Output of Program - Discussion Forum

C Programming Discussion Forum

Find Output of Program

Join the discussion and learn from fellow students. Share your knowledge and get your questions answered.

0 Discussions
Active Community
Question 2976
Question 2976 Back to Exercise

What is the output of the program

#include<stdio.h>
int main()
{
    int x = 10, y = 20, z = 5, i;
    i = x < y < z;
    printf("%d\n", i);
    return 0;
}


A 0
B 1 Correct
C Error
D None of these
Correct Answer: Option B

Discussion & Comments

Join the conversation below. Share your solution or ask for clarification.

No comments yet. Be the first to share your solution!

Post Your Comment

Your comments will be displayed only after manual approval.