若有int a,b;
int *pointer_1,*pointer_2; float *pointer_3;
下面赋值正确的是( )
A: pointer_3=2000;
B: *pointer_1=&a;
C: pointer_1=&a;
D: pointer_3=&a;
int *pointer_1,*pointer_2; float *pointer_3;
下面赋值正确的是( )
A: pointer_3=2000;
B: *pointer_1=&a;
C: pointer_1=&a;
D: pointer_3=&a;
举一反三
- int a=3;int *pointer;pointer=&a;此时,*pointer与( )等价。 A: a B: *a C: &a D: pointer
- 下列代码段,( )是正确的 A: int *pointer,x;pointer=x; B: int *pointer,x;*pointer=x; C: int *pointer,x;pointer=&x; D: int *pointer,x;x=&pointer;
- 【单选题】若有int a,b; int *pointer_1,*pointer_2; float *pointer_3; 下面赋值正确的是() A. pointer_3=2000; B. *pointer_1=&a; C. pointer_1=&a; D. pointer_3=&a;
- 中国大学MOOC: 下面一段代码中break语句起到( )的作用。 int pointer = 1; while (pointer <= 100) { switch(pointer % 3) { case 1: pointer += 1; break; case 2: pointer += 2; break; case 3: pointer += 3; break; } pointer++; }
- int a=3;int *pointer;pointer=&a;此时,*pointer与( )等价。 A: a B: *a C: &a D: pointer