当前位置: 技术问答>linux和unix
为何下面的代码一样的表达式输出不一样的结果
来源: 互联网 发布时间:2017-05-02
本文导语: #include int main(void) { unsigned int a = 6; int b = -20; int c = a + b; printf("%dn",c); ((a + b) > 6)?puts(">6"):puts("
#include
int main(void)
{
unsigned int a = 6;
int b = -20;
int c = a + b;
printf("%dn",c);
((a + b) > 6)?puts(">6"):puts("
int main(void)
{
unsigned int a = 6;
int b = -20;
int c = a + b;
printf("%dn",c);
((a + b) > 6)?puts(">6"):puts("