A
ambika
Hello,
Hello,
When the below pgm is executed The output is "1"..How is that?How does
"i" get that value "1"..Only one condition is true here(x<y)but z is
not greater than x or y,then how does it work?
Thanks to all those who are gonna respond.
--ambika
#include<stdio.h>
int main()
{
int x=10,y=20,z=5,i;
i=x<y<z;
printf("\n%d",i);
return(0);
}
Output:
1
Hello,
When the below pgm is executed The output is "1"..How is that?How does
"i" get that value "1"..Only one condition is true here(x<y)but z is
not greater than x or y,then how does it work?
Thanks to all those who are gonna respond.
--ambika
#include<stdio.h>
int main()
{
int x=10,y=20,z=5,i;
i=x<y<z;
printf("\n%d",i);
return(0);
}
Output:
1