• 2021-04-14
    设int型变量x的值为9,那么表达式x-- + x-- + x--的值为()
  • 27

    内容

    • 0

      有如下程序段,其中语句 x--; 执行的次数是( )。 int x = 10; while ( x = 0 ) x--;

    • 1

      下述程序的输出结果是_______。 #include <stdio.h> void main() { int x=8; for( ; x>0; x--) { if(x%3) {printf("%d,",x--); continue; } printf("%d,",--x); } }

    • 2

      假设如下语句,输出结构和循环结束后x的值是多少? for(x=9;x>5;x--) printf("%d",x);

    • 3

      设有定义语句int x=1,y=0;,则表达式x-->(y+x)?10:12>y++?A: Z的值是

    • 4

      设x,y均为int型变量,且x=10,y=3,则以下语句的输出结果是( )。 printf("%d,%d\n",x--,--y)