填空题

以下程序运行后的输出结果是______。
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
<上一题 目录 下一题>
热门 试题

填空题
以下程序运行后的输出结果是______。 #include <string.h> void fun(char *s,int p,int k) int i; for(i=p;i<k-1;i++) s[i]=s[i+2]; main() char s[]= abcdefg ; fun(s,3,strlerl(s)); puts(s);
填空题
已知字符A的ASCII码值为65,以下程序运行时,若从键盘输入:B33<回车>,则输出结果是______。 #include main() char a,b; a=getchar();scanf( %d ,&b); a=a-’A’+’0’;b=b*2; printf( %c %c n ,a,b);
相关试题
  • 以下程序中函数huiwen的功能是检查一个字符...
  • 以下程序运行后的输出结果是______。...
  • 以下程序运行后的输出结果是______。...
  • 以下程序运行后的输出结果是______。...
  • 以下程序中,fun函数的功能是求3行4列二...