#include <stdlib.h>
#include <malloc.h>
typedef struct haha {
int a ;
long b;
} haha;
int main()
{
haha **yes = malloc(sizeof(haha *)* 2);
haha *one = malloc(sizeof(haha));
haha *two = malloc(sizeof(haha));
one->a = 1;
one->b = 100;
two->a = 2;
two->b = 200;
yes[0] = one;
yes[1] = two;
free(one);
free(two);
yes[0]->a= 3;
yes[1]->a = 4;
}
为什么最后还句不报错?按理来说释放了内存应该不能使用的