填空题

下列程序的输出结果是______。
#define P(A) printf("%d,",(int)(A) )
#definePRINT(A) P(A) ;printf("the end")
main()
int i,a=0;
for(i=1;i<5;++)
PRINT(a+i);
printf("\n");

【参考答案】

A,B,C,D,the end
<上一题 目录 下一题>
热门 试题

填空题
设有下列程序: #include<stdio.h> #include<string.h> main() int i; char s[10],t[10]; gets(t); for(i=0;i<2;i++) gets(s); if(strcmp(t,s)<0) strcpy(t,s); printf( %s n ,t); 程序运行后,从键盘上输入(<CR>代表回车符):CDEF<CR>BADEF<CR>QTHRG<CR>,则程序的输出结果是______。
填空题
设有下列的程序段: char str[]= Hello ; char*ptr; ptr=-str; 执行上面的程序段后,*(ptr+5) 的值为______。
相关试题
  • 下列二维数组初始化语句中,不正确的是( )。
  • 下列程序输出的结果是______。 int...
  • 设有下列程序: #include<stdio.h> ...
  • 语句“printf( a bhow 'are 'y bou ...
  • 在C语言中,函数返回值的类型最终取决于(...