1,malloc返回的void *类型指针不可做更改 #include <stdio.h>#include<stdlib.h>intmain(void) {int*p=malloc(20); p++;//p已经变化过,因此是 无效的释放free(p);return0; } 结果:报错 *** Errorin`./a.out': free(): invalid pointer: 0x0156000c ***Aborted (core dumped) 2,free双重释放 #...