题目内容

下面程序的输出结果是________#include int main(){int a[ ]= {1,2,3,4,5,6,7,8,9,0,},*p;p=a;printf("%d\n",*p+9);return 0;}

A. 0
B. 1
C. 9
D. 10

查看答案
更多问题

以下程序的输出结果是_________#include int main(){int i, x[3][3]= {1,2,3,4,5,6,7,8,9};for(i=0; i<3; i++) printf("%d,",x[i][2-i]);return 0;}

A. 1,4,7,
B. 1,5,9,
C. 3,5,7,
D. 3,6,9,

以下程序的输出结果是_________#include int main(){int a[3][3]= { {1,2},{3,4},{5,6} },i,j,s=0;for(i=1; i<3; i++)for(j=0; j<=i; j++)s+=a[i][j];printf("%d\n",s);return 0;}

A. 18
B. 19
C. 20
D. 21

以下定义语句中,错误的是___________

A. int a[]={1,2};
B. char *a[3];
C. char s[10]="test";
D. int n;float a[n];

以下程序的输出结果是________#include char cchar(char ch){if(ch>='A'&&ch<='Z') ch=ch-'A'+'a';return ch;}int main(){char s[]="ABC+abc=defDEF",*p=s;while(*p){*p=cchar(*p);p++;}printf("%s\n",s);return 0;}

A. abc+ABC=DEFdef
B. abc+abc=defdef
C. abcaABCDEFdef
D. abcabcdefdef

答案查题题库