摘要:先看个例子:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>struct helloworld_t{ int num; char helloworld[0];//主要是用来得到一个数组的地址,再由数组的个数来访问};int main(){ struct helloworld_t *p; unsigned int size = sizeof(struct helloworld_t) + strlen("Hello World!\n&quo
阅读全文
posted @ 2012-09-15 23:03
浙公网安备 33010602011771号