• 2022-05-30
    下列程序的运行结果是()
    A: x+y,60
    B: x+y60
    C: 60,60
    D: 6060
  • B

    内容

    • 0

      以下程序的输出结果是( ). struct st { int x;int *y;}*p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0],}; main( ) { p=aa; printf("%d\n",++(p->x)); }

    • 1

      下面程序的运行结果是 。 clear Store 0 To X, Y Do While X<20 X=X+Y Y=Y+2 Enddo ?X, Y Return

    • 2

      What will be the values of ans, x, and y after the following statements are executed?执行以下语句后,ans,x和y的值是什么?int ans = 35, x = 50, y =50;if ( x >;= y){ans = x + 10;x -=y;} else {ans = y + 10;y += x;} A: ans = 60, x = 50, y =100 B: ans = 60, x =0, y =50 C: ans = 45, x = 50, y = 0 D: ans = 45, x = 50, y = 50

    • 3

      以下程序的输出结果是( )。#define MAX(x,y) (x)>;(y)?(x):(y)main(){int a=5,b=2,c=3,d=3,t;t=MAX(a+b,c+d)*10;printf('%d',t);} A: 70 B: 6 C: 7 D: 60

    • 4

      以下程序的输出结果是( ). struct st { int x;int *y;}*p; int dt&#91;4&#93;={10,20,30,40}; struct st aa&#91;4&#93;={50,&dt&#91;0&#93;,60,&dt&#91;0&#93;,60,&dt&#91;0&#93;,60,&dt&#91;0&#93;,}; main( ) { p=aa; printf("%d