题目内容

int main(void) {int y=10; while (y--); printf("y=%d\n",y); return 0 ; } The output of the program is ( ).

A. y=0
B. y=-1
C. y=1
D. while forms an infinite loop

查看答案
更多问题

%d of the printf function is used to output signed decimal integers.

The %f of the printf function, which is used to output real numbers in exponential form.

The output of the following program is______ 。 int main(void) { char m; m='B'+32; printf("%c\n",m); return 0; }

The following statement that cannot output character a is (Note: the ASCII code value of character a is 65, and the ASCII code value of character a is 97)

A. printf("%c\n",'a'-32);
B. printf("%d\n",'A');
C. printf("%c\n",65);
D. print-f("%c\n",'B'-1);

答案查题题库