填空题

以下程序运行后的输出结果是 【11】 。
void fun(int x,int y)
x=x+y;Y=x-y;x=x-y;
printf(“%d,%d”,x,y);
main()
int x=2,y=3;
fun(x,y);
printf(“%d,%d\n”,x,y);

【参考答案】

3,2,2,3
<上一题 目录 下一题>
热门 试题

填空题
函数sstrcmp()的功能是对两个字符串进行比较。当s所指字符串和t所指字符串相等时,返回值为0;当s所指字符串大于t所指字符串时,返回值大于0;当s所指字符串小于t所指字符串时,返回值小于0 (功能等同于库函数strcmp())。请填空。 #include<stdio.h> int sstrcmp(char *s,char *t) while(*s&&*t&&*s== 【15】 ) s++;t++; return 【16】 ;
填空题
fun函数的功能是:首先对a所指的N行N列的矩阵,找出各行中的最大的数,再求这N个最大值中的最小的那个数作为函数值返回。请填空。 #include<stdio.h> #define N 100 int fun(int(*a)[N]) int row,col,max,min; for(row=0;row<N;row++) for(max=a[row][0],col=1;col<N;col++) if( 【13】 )max=a[row][col]; if(row==0)min=max; else if( 【14】 )min=max; return min;
相关试题
  • 若fp已正确定义为一个文件指针,d1.dat为...
  • 下面程序的运行结果是: 【19】 。 ty...