(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)();()}()______________________________________________________________________________________________________________________________
举一反三
- 如下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
- 下面程序的输出结果是 。 #include int main (void) { int x=2,y,z; x*=3+2;printf("%d\n",x); x*=y=z=4;printf("%d\n",x); x=y=z;printf("%d\n",x); x=(y=z);printf("%d\n",x); return 0; }
- 以下程序的输出结果是( )。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
- int main()执行结果是(){int x=2,y=1; switch(x) { case 1: y=x ; break; case 2: y=-x ; case 3: y=x*3 ; break; case 4: y=4*x; } printf(“%d\n”,y);}
- y﹦|4x-x²|去绝对值后是y=-x²+4,还是y=x²-4x?