填空题

下面程序的输出结果是______。 #include<stdio.h> main() {static char a[]="china"; char*ptr=a; while(*ptr) {printf("%c",*ptr-32); ptr++; } }

【参考答案】

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

填空题
写出下列程序的执行结果。 swap(p1,p2) int*p1,*p2; {int p; p=*p1;*p1=*p2;*p2=p; } main() {int a,b,*p1,*p2; scanf( %d%d ,&a,&b); p1=&a;p2=&b; if(a<b)swap(p1,p2); printf( na=%d,b=%d n ,a,b); } 若a=7,b=8,则程序的运行结果为______。
填空题
下面程序的运行结果是______。 #define POW(r)r*r main() {int x=2,y=3,t; t=POW(x+y); printf( %d n ,t); }
相关试题
  • 若要求从键盘读入含有窄格字符的字符串,应...
  • 程序设计的任务包括( )。
  • 设有条件表达式:(EXP)i++;j--,则...
  • 在软件生命周期中,能准确地确定软件系统必...
  • 数据库的故障恢复一般是由( )来执行恢复。