-
char * *arr[10] 占多少个字节?
40 -
自定义结构体如下:
struct Student
{
int x;
int y;
};第一步:
Student**** s;
s = (Student****)100;
s++; //s的值是多少? 108
s = s + 2; //s的值是多少? 116
s = s - 3; //s的值是多少? 76
第二步:
Student**** s1;
Student**** s2;
int x;s1 = (Student****)200;
s2 = (Student****)100;
x = s1 - s2; //x的值是多少? 12
第三步:
Student* s;
s = (Student*)100;
s++; //s的值是多少? 108
s = s + 2; //s的值是多少? 116
s = s - 3; //s的值是多少? 96
第四步:
Student* s1; Student* s2;
int x;
s1 = (Student*)200;s2 = (Student*)100;
x = s1 - s2; //x的值是多少? 12
64位的机子比较财大气粗哦,结构体和指针都是qword–8字节的了。掠
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)