首页上一页 1 下一页尾页 4 条记录 1/1页
单个!和!!是什么意思呢?
发表在C语言图书答疑
2016-04-28
是否精华
是
否
版块置顶:
是
否
#include<stdio.h>
int main()
{
int iNumber1,iNumber2;
iNumber1=10;
iNumber2=0;
printf("the 1 is ture,the 0 is false\n");
printf("5< iNumber1&&iNumber2 is %d\n",5<iNumber1&&iNumber2);
printf("5< iNumber1||iNumber2 is %d\n",5<iNumber1||iNumber2);
iNumber2=!!iNumber1; //大神这个地方不理解 是什么意思解答
printf("iNumber2 is %d\n",iNumber2);
return 0;
}
int main()
{
int iNumber1,iNumber2;
iNumber1=10;
iNumber2=0;
printf("the 1 is ture,the 0 is false\n");
printf("5< iNumber1&&iNumber2 is %d\n",5<iNumber1&&iNumber2);
printf("5< iNumber1||iNumber2 is %d\n",5<iNumber1||iNumber2);
iNumber2=!!iNumber1; //大神这个地方不理解 是什么意思解答
printf("iNumber2 is %d\n",iNumber2);
return 0;
}