摘要: #include<stdio.h>int main(){char* p=(char*)malloc(16*sizeof(char));p="hello";free(p);return 0;}这里先简单记录下:第5行出错,字面量在内存中只占一个内存,位置不在堆中。 阅读全文
posted @ 2012-10-13 22:52 prepat 阅读(118) 评论(0) 推荐(0) 编辑