摘要: #include <stdio.h>#include <malloc.h> int main(void){int * msg = NULL;int * msg2 = NULL;int a = 2;msg = (int *)malloc(10);if(NULL == msg) {printf("msg malloc error!\n");}// free(msg); // 1if(NULL == msg2){printf("msg2 malloc error!\n");}msg = &a;msg2 = msg;printf( 阅读全文