What will be the output of this program?
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int x=20,y=30,z=10;
int i=x<y<z;
printf("%d",i);
getch();
}
In fact i=20<30<10, therefore, the condition is false, and the value ishould be 0, and iequal to 1. Why?
source
share