填空题

以下程序运行后的输出结果是【 】。 main() {int a=3,b=4,c=5,t=99; if(b<a&& a<c)t=a;a;a=c;c=t if(a<c&&b<c)t=b;b=a;a=t; printf("%d%d%d\n",a,b,c); }

【参考答案】

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

填空题
下列程序的定义语句中,x[1]的初值是【 】,程序运行后输出的内容是【 】。#include <stdio.h>main(){int x[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16},*p[4],i;for(i=0;i<4;i++){p[i]=&x[2*i+1];printf( %d ,p[i][0]);}printf( n );}
填空题
以下sstrcpy( )函数实现字符串复制,即将t所指字符串复制到s所指向内存空间中,形成一个新的字符串s。请填空。void sstrcpy(char *s,char *t){ while(*s++=【 】);}main( ){ char str1[100],str2[ ]=”abcdefgh”;sstrcpy(str1,str2);printf(“%s n”,str1);}
相关试题
  • fun( )函数的功能是首先对a所指的N行N列...
  • 以下程序的输出结果是【 】。#includemai...
  • 支持Internet基本服务的协议是【 】。