填空题

以下程序运行后的输出结果是 【13】 。
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",a,b);

【参考答案】

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

填空题
以下程序中函数huiwen.的功能是检查一个字符串是否是回文,当字符串是回文时,函数返回字符串: yes!,否则函数返回字符串:no!,并在主函数中输出,所谓回文即正向与反向的拼写都一样,例如:adgda。请填空。 #include<string.h> char *huiwen(char*str) char*p1,*P2;int i,t=0; P1=str;p2= 【18】 ; for(i=0;i<=strlen(str) 2;i++) if(*p1++!=*p2--)t=1;break; if( 【19】 )return( yes! ); else return( no! ); main() char str[50]; printf( Input: );scanf( %s ,str); printf( %s n , 【20】 );
填空题
以下程序运行后的输出结果是 【14】 。 #include<stringh> 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,strlen(s));puts(s);
相关试题
  • 以下程序运行后的输出结果是 【15】 。...
  • 以下程序运行后的输出结果是 【17】 。...