题目内容

while statement and do while statement have the same function

查看答案
更多问题

If the variable is defined correctly, there are the following sections: i=0;do printf("%d, ",i);while(i++); printf("%d\n",i); Its output is ( ).

A. 0,0
B. 0,1
C. 1,1
D. Program enters infinite loop

#includemain () {int a=1,b=2; while (a<6) {b+=a; a+=2; b%=10; } printf(“%d,%d\n”,a,b); } The output of the program is ( ).

A. 5,11
B. 7,1
C. 7,11
D. 6,1

C language integer constant has only one decimal representation.

A character constant is a character enclosed in double quotation marks.

答案查题题库