程序如下:intx=3,y;int*px=&x;y=*px++;则如下描述中正确的是:()
A: x=3;y=4
B: x=3;y=3
C: x=4;y=4
D: x=3;y不确定
A: x=3;y=4
B: x=3;y=3
C: x=4;y=4
D: x=3;y不确定
举一反三
- 执行以下语句的结果为______。 int x=3,y;int*px=&x;y=*px++; A: x=3,y=4 B: x=3,y=3 C: x=4,y=4 D: x=3,y不知
- 如下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
- 执行下列语句后的结果为(). int x=3,y; int *px=&x; y=*px++;
- 应用Matlab软件计算行列式[img=110x88]17da5d7b00219d6.png[/img]为( ). A: x^2 - 6*x^2*y^2 + 8*x*y^3 - 3*y^4 B: x^3 - 6*x^2*y^2 + 8*x*y^3 - 3*y^4 C: x^4 - 6*x^2*y^2 + 8*x*y^3 - 3*y^4 D: x^5- 6*x^2*y^2 + 8*x*y^3 - 3*y^4