我在C中实现了以下程序
#include <stdio.h>
int main()
{
int a = 10 ;
if(0 < a < 5)
{
printf("The condition is true!") ;
}
return 0 ;
}
Run Code Online (Sandbox Code Playgroud)
为什么病情0<a<5总会恢复true?
我想知道这段C语言代码中的i是如何计算的?
int x = 10, y = 20, z = 5, i;
i = x < y < z;
printf("%d\n",i);
Run Code Online (Sandbox Code Playgroud)