标签:style ar sp bs ef size har table text
char p[][10] = {
{"123"},
{"12"}
};
char *p1 = (char *)p + 1
char *p11 = (char *)p + 11
则p的内存如下:
1 | 2 | 3 | \0 | - | - | - | - | - | - | 1 | 2 | \0 | - | - | - | - | - | - | - |
p[0] | p1 | p[1] | p11 |
sizeof(p) = 20
标签:style ar sp bs ef size har table text
原文地址:http://www.cnblogs.com/linyoub/p/4064538.html