问答题
#inelude<stdio.h> sub(x,y,z) int x,y,*z; {*z=y-x;} main() {int a,b,C; sub(10,5,&a); sub(7,a,&b); sub(a,b,&c); printf("%d,%d,%d\n",a,b,c); }
【参考答案】
-5.-12,-7[解析] #include<stdio.h> sub(x,y,z) int x,y,*z;/*只有参数......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
以下程序的功能是:从键盘输入若干个学生的成绩,统计出最高成绩和最低成绩,当输入负数时结束输入。 #include<stdio.h> main() {float x,amax,amin; scanf( %f ,&x); amax=x: amin=x; while( ) *第一空* {if(______)amax=x; *第二空* if(x<amin)______; *第三空* scanf( %f ,&x); } printf( amax=%3.2f,amin=%3.2f n ,amax,amin); }
点击查看答案&解析
问答题
#include<stdio.h> main() {char b[]={ CDEFGH }; char *chp=&b[3]; while(--chp<&b[0]); putchar(*chp): printf( n ): }
点击查看答案
相关试题
下面程序用来输出两个字符串中较短的长度。...
从a盘根目录下名为 string. txt 的文本...
编写一个程序,用循环结构输出以下图形。
下面程序通过函数average()计算数组中各...