填空题
以下程序运行后的输出结果是______。
void swap(int x,int y)
int t;
t=x;x=y;y=t;printf("%d%d",x,y);main()
int a=3,b=4;
swap(a,b); printf("%d%d\n",a,b);
【参考答案】
4 3 3 4
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后的输出结果是______。 main() int a=3,b=4,c=5,t=99; if(b<a&&a<c)t=a;a=c;c=t; if(a<c&&b<c)t=b;b=a;a=t printf( %d%d%d n ,a,b,c);
点击查看答案&解析
填空题
以下程序的功能是:将输入的正整数按逆序输出。例如:若输入135则输出531。请填空。 #include <stdio.h> main() int n,s; printf( Enter a number: );scanf( %d ,&n); printf( Output: ); do s=n%10;printf( %d ,s);______; while(n! =0); printf( n );
点击查看答案&解析
相关试题
有以下程序: float f1(float n) re...
以下程序的输出结果是______。 #in...
#define命令出现在程序中函数的外面,宏名...
以下程序运行后的输出结果是 。 # incl...
请将下列程序中的函数声明语句补充完整。 ...