C语言试题 收集
来源:互联网 发布:淘宝福利买家秀关键词 编辑:程序博客网 时间:2024/05/17 02:48
#include "stdio.h"
#include "conio.h"
#include "conio.h"
main()
{
int a=1,b=2,c=2;
while(a<b<c)
{
int t;
t=a;
a=b;
b=t;
c--;
}
printf("%d /n",c);
getch();
}
{
int a=1,b=2,c=2;
while(a<b<c)
{
int t;
t=a;
a=b;
b=t;
c--;
}
printf("%d /n",c);
getch();
}
自己尝试着把结果写下来
如果想知道正确答案 就去编译器上自己运行下
C99规范
§6.5.9 第86页 89) The expression a<b<c is not interpreted as in ordinary mathematics. As the syntax indicates, it
means (a<b)<c; in other words, ‘‘if a is less than b, compare 1 to c; otherwise, compare 0 to c’’
§6.5.9 第86页 89) The expression a<b<c is not interpreted as in ordinary mathematics. As the syntax indicates, it
means (a<b)<c; in other words, ‘‘if a is less than b, compare 1 to c; otherwise, compare 0 to c’’
- C语言试题 收集
- C语言面试题收集
- c语言面试题__指针篇 (收集)
- C语言面试题收集(函数调用、指针等)
- C语言面试题收集(函数调用、指针等)
- C/C++面试题收集
- windows和linux下的c语言/网络/网络编程面试题收集[更新:2006.6.8]
- C语言资源收集贴
- C语言小问题收集
- C语言输出格式收集
- C语言面试题
- 嵌入式c语言试题
- C语言面试题
- C语言面试题
- C语言面试题
- c语言面试题
- c语言面试题
- C 语言试题
- 兴奋
- 讨教
- ASP.NET常用代码
- ASP.NET常用代码2
- 百度c语言贴吧 经典C源程序100例-16
- C语言试题 收集
- good
- 转----Linux像老婆,Windows像妓女
- 百度c语言贴吧 经典C源程序100例-18
- 后知后觉也不放弃
- 快考试了,大家要努力复习啊
- asp.net连接Access数据库
- ...
- 杂项