• 2022-05-28
    The output of the following program is main(){ int n=4; while (n--) printf("%d",--n);}
    A: 20
    B: 31
    C: 321
    D: 210
  • A

    内容

    • 0

      【复习200T】92、下面程序的输出结果是__________. #include voidmain() {intn=4; while(n--)printf("%d",n--); } A: 20 B: 31 C: 321 D: 210

    • 1

      有如下程序 void main() { int n=9; while(n>6) { n--; printf("%d",n); } } 该程序段的输出结果是_____。

    • 2

      以下程序段的输出结果是。 int n=10; while(n>7) { printf("%d,",n); n--; }

    • 3

      Which of the following program is right? A: include <stdio.h> int main(); { /*programming*/ printf("programming!\n"); return 0; } B: include <stdio.h> int main() { /*programming*/ printf("programming!\n"); return 0; } C: include <stdio.h> void main() { /*programming*/ printf("programming!\n") return 0; } D: include <stdio.h> int mian() { /*programming*/ printf("programming!\n"); return 0; }

    • 4

      以下程序的输出结果是( )。 main() { int n=0; while(n++<=1) printf("%d",n); printf("%d\n",n); }