会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Do or Not Do ,There Is No Try!
come from the earth,and never come back.
新随笔
管理
2017年4月19日
从一段经典错误代码说起——关于局部变量指针和函数传参的问题分析
摘要: 有一段 精短的 错误代码 ,值得深思下: voidGetMemory(char*p,int num) { p =(char*)malloc(sizeof(char)* num); } voidTest(void) { char*str = NULL; GetMemory(str,100); strc
阅读全文
posted @ 2017-04-19 10:23 Lckfa
阅读(623)
评论(0)
推荐(0)
编辑
公告