填空题

下面程序的运行结果是 【18】 。
void swap(int *a,int *b)
int *t;
t=a;a=b;b=t;
main()
int x==3,y=5,*p=&x,*q=&y;
swap(p,q);
printf("%d%d\n",*p,*q);

【参考答案】

35
<上一题 目录 下一题>
热门 试题

填空题
函数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】 ;
填空题
若有如下程序: main() int x=4;y=3,Z=2,t; t=x<y<z; printf( %d n ,t); 则程序运行后的输出结果是 【10】 。
相关试题
  • 以下程序运行后输入3,abcde<回车>,则...
  • 设有以下结构体类型: struct st char ...
  • fun函数的功能是:首先对a所指的N行N列的矩...