题目内容

When executing the following program, enter 1234567890 and the while loop will execute ______ times .#includeint main (void){ char ch; while((ch=getchar())=='0') printf("#"); return 0;}

查看答案
更多问题

If specified,int a[][3]={1,2,3,4,5,6};Then the size of the first dimension of array a is ( ).

A. 2
B. 3
C. 4
D. No definite value

Define the following variables and arrays: int k; int a[3][3]={1,2,3,4,5,6,7,8,9}; The output of the following statement is ( ). for(k=0;k<3;k++) printf("%d",a[k][2-k]);

A. 357
B. 369
C. 159
D. 147

The following is the initialization of s, where the incorrect is ( ).

A. char s[5]={"abc"};
B. char s[5]={'a','b','c'};
C. char s[5]=" ";
D. char s[5]={"abcdef"};

The running result of the following program segment is ( ).char a[7]={"abcdef"}; char b[4]={"ABC"}; strcpy(a,b); printf("%c",a[5]);

A. _
B. \0
C. e
D. f

答案查题题库