这个程序的输出是什么?
#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(); }
实际上i=20<30<10,条件是假的,值i应为0但i等于1.为什么?
i=20<30<10
i
c c++
c ×1
c++ ×1