#includefunc(intx){x=10;printf(“%d,”,x);}main(){intx=20;func(x);printf(“%d”,x);}运行结果为()
举一反三
- #include func(int x) { x=10; printf(“%d,...“%d”, x); } 运行结果为( )
- main(){intx=0,z,y=z=-1;x=x---z-y;printf("x=%d\n",x);}输出结果是:main(){intx=0,z,y=z=-1;x=--x-z-y;printf("x=%d\n",x);}输出结果是:1
- main(){intx=3;x+=--x+x++;printf(“x=%i\n”,x);}
- 以下程序运行后的输出结果是_main(){intx=0210;printf("%x\n",x);}
- 以下程序,能正确输出x值的是() A: voidmain(){intx=50;int*p=x;printf("%d",*p);} B: voidmain(){intx=50;int*p=&x;printf("%d",*p);} C: voidmain(){intx=50;intp=&x;printf("%d",*p);} D: voidmain(){intx=50;int*p=&x;printf("%d",p);}