填空题
以下程序运行后的输出结果是______。
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
main()
char *p; int i;
p=(char *)malloc(sizeof(char)*20) ;
strcpy(p, "welcome");
for(i=6; i>=0; i--) putchar(*(p+i));
printf("\n"); free(p);
【参考答案】
emoclew
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后的输出结果是______。 #include<stdio.h> main() int i, n[5]=(0); for(i=1; i<=4; i++) n[i]==n[i-1]*2+1; printf( %d , n[i]); printf( n );
点击查看答案&解析
填空题
有以下程序,请在______处填写正确语句,使程序可正常编译运行。 #include<stdio.h> ______; main() (double x, y, (*p)(); scanf( %1f%1f , &x, &y); p=avg; printf( %f n , (*p)(x, y)); double avg(double a, double b) return((a+b) 2);
点击查看答案&解析
相关试题
以下程序运行后的输出结果是______。...