Quote Originally Posted by prateek View Post
oh but

but when I write
if(a>b>>c)
the output becomes true ??

whyy ??
because ,

again
a>b ==> true (return 1)
1>>5 ==> right shift "1" to five times
return non-zero value and therefore any equality/operational expression is true by default..
Techking Reviewed by Techking on . Turbo C | Weird and amazing Why the output of the following program comes False #include<stdio.h> void main() { int a=15, b=10, c=5; if(a>b>c) printf("True"); else printf("False"); Rating: 5