int c=3,那么“!c”等于什么?
int c=3,那么“!c”等于什么? 零?还是除三之外?
0 ! 这个操作符的结果只能是bool类型,所以,LZ的表达式结果是 false,应该没有第二个解。 时间长了没人回答你问题了. 哈哈, 他就发了一个帖子,还没来得及结贴吧 当然是0,任何整型求反都是0 0 !c就是 C==0 引用 int c=3,那么“!c”等于什么? 零?还是除三之外?
相关问答:
请问用C或C++如何编写求解3D魔方的程序,该从何开始? 谢谢各位,帮忙提点建议吧。 http://www.mofang.net/code/176/182/6581.html 我只能突破60秒!唉。 我刚过40秒 google的android中有个OpenGL ES + ......
写了个测试程序如下 struct hostent *hp; char AlarmDevIP[20]; int x2; hp = gethostbyname("www.google.com"); if (hp) {
......
SHIFT加F10与那个键右ctrl边上的那个键功能一样,想屏这个 但不知要怎么写那个组合键! 有没哪个大侠放一段这个的代码或写一段 http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html
......
帮帮忙,谢谢~ 1. Write a program to perform a topological sort on a graph. 2. Write a program to solve the single‐source shortest‐path problem (Dijkstra algorithm). 3. Write a program ......