以下程序输出的结果为.x=1y=4DoWhiley<=4x=x*yy=y+1LoopPrintx()
A: 4
B: 8
C: 12
D: 16
A: 4
B: 8
C: 12
D: 16
举一反三
- 执行以下程序段的输出x的值为()x=1y=4DoUntily>4x=x*yy=y+1Loop A: 1 B: 4 C: 8 D: 20
- 如下C程序的输出是什么?#include [stdio.h]void Func1 (int x, int y);void Func2 (int *x, int *y); int main() { int x = 3; int y = 4;Func1 (x, y); printf ("x = %d, y = %d\n", x, y);Func2(&x, &y); printf ("x = %d, y = %d\n", x, y);} void Func1 (int x, int y) { x = x + y; y = x - y; x = x - y; printf ("x = %d, y = %d\n", x, y);} void Func2 (int *x, int *y) { *x = *x + *y; *y = *x - *y; *x = *x - *y;;} A: x = 3, y = 4x = 3, y = 4x = 3, y = 4 B: x = 4, y = 3x = 4, y = 3x = 4, y = 3 C: x = 3, y = 4x = 3, y = 4x = 4, y = 3 D: x = 4, y = 3x = 3, y = 4x = 4, y = 3
- 以下程序的输出结果是( )。main(){ int x=1,y=2; void swap(int x,int y); swap(x,y); printf("x=%d,y=%d\n",x,y);}void swap(int x,int y){ x=3,y=4;} A: x=3,y=4 B: x=1,y=2 C: x=3 y=4 D: x=1 y=2
- (4)()#include()extern()serial_initial()();()main()(){()int()a,b();()unsigned()int()x,y();()serial_initial()();()a=b=0xaa55();x=y=0xaa55;()printf("\n()a=%4x()b=%4x()x=%4x()y=%4x",a,b,x,y)();()a=a<<1();b=b>>1;()x=x<<1();y=y>>1;()printf("\n()a=%4x()b=%4x()x=%4x()y=%4x",a,b,x,y)();()printf("\n")();()printf("\n")();()printf("That()is()all.\n")();()while(1)();()}()______________________________________________________________________________________________________________________________
- 有以下程序void f( int y,int *x){y=y+*x; *x=*x+y;}main( ){ int x=2,y=4; f(y,&x); printf(“%d %d ”,x,y);} 执行后输出的结果是 A: 8 4 B: 4 2 C: 2 4 D: 4 8