本帖最后由 醉心369 于 2017-2-20 18:58 编辑
const int a=1;
int *b = (int*)&a;
int c =3;
const int *d = &c;
*b = 2;
c = 4;
printf("a=%d,*b=%d,c=%d,*d=%d",a,*b,c,*d);
a. a = 1, *b = 2, c = 4, *d = 3
b. a = 1, *b = 2, c = 4, *d = 4
c. a = 2, *b = 2, c = 4, *d = 3
d. a = 2, *b = 2, c = 4, *d = 2
e. none of above
各位大侠,这个题选择哪个啊
|