填空题
对两个整型变量先进行输入和输出,将它们的值交换后再输出。
#define PR printf("a=%d,b=%d\n",a,b)
void main()
int a,b,______; /*第一空*/
scanf("%d%d",______); /*第二空*/
PR;
temp=a,______,b=temp; /*第三空*/
PR;
【参考答案】
第一空:temp
第二空:&a,&b
第三空:a=b
点击查看答案
<上一题
目录
下一题>
热门
试题
问答题
struct people char name[10]; float score; per[]= Tom ,95.5), Mary ,88.0); void main() struct people。p—per+1; printf( %s,%.1f n ,per[0].name,p→score);
点击查看答案
问答题
s(int a) static int b=10: if(a%2==1)return(++b); else return(++a); void main() int i; for(i=0;i<3;i++)printf( %d t ,s(i)); printf( n );
点击查看答案
相关试题
用循环结构实现下列问题:现有1020本书...
为n输入一个正整数值后,计算并输出的值。...
(1)根据下列计算公式写出函数,将华氏温...
为二维数组各元素输入数据,计算并输出全部...