填空题
下列程序的输出结果是 ______。
#define P(A) printf("%d,",(int)(A) )
#define PRINT(A) P(A) ;printf("the end")
main()
int i,a=0;
for(i=1;i<5.i++)
PRINT(a+i);
printf("\n");
【参考答案】
A,B,C,D,the end
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
设有下列的程序段:char str[]= Hello ;char*ptr;ptr=str;执行上面的程序段后,*(ptr+5)的值为______。
点击查看答案&解析
填空题
下列程序的功能是对输入的一行字符中的数字字符的字面值累加,输出此累加和,请填空。#include<stdio.h>#include<ctype.h>main() char c; int a,s=0; while( ______) if(isdigit(C) ) a=c-’0’;s+=a; printf( s=%d ,s);
点击查看答案&解析
相关试题
下列程序段的输出结果是 ______。in...
设有下列程序:#include<stdio.h>#inc...