Redian新闻
>
被闺蜜的男票死缠烂打,我也是醉了!!
avatar
被闺蜜的男票死缠烂打,我也是醉了!!# Love - 情爱幽幽
d*f
1
int *pInt = (int*)malloc(100*sizeof(int));
pInt++;
free(pInt);
Except mem leaking, is there any other problem ?
My suspicion is free() will mark the out of boundary mem location. So the
behavior will be undefined.
avatar
e*e
2
最近简直是疯了,自从过年期间见到了闺蜜的男票,我的手机简直就进入了疯癫状态,
我的生活也全乱了。
也不知道他是怎么弄到我的号码的,各种死缠烂打啊。
话说我也不是那种心机绿茶什么的,我无数次明确告诉他:我有男票,我不是那种挖姐
妹儿墙角的人。
可是人家哥们儿拿出一副琼瑶式男猪脚的痴缠和深情,还声称已经恢复了单身。
不就我也确实得到了他恢复单身的消息,因为闺蜜和我绝交了!!!!!!
关键是和我有神马关系啊,我完全是无辜的,我还生气天天有人骚扰呢。
可是不仅闺蜜,周围的朋友也有意无意的疏远我,弄得就像是我去勾引人家了似的。
连我的男票都觉得,是不是我和人家暧昧了,所以人家才死追烂打的。
真是处处都有冤死鬼啊。
我们认识完全是闺蜜促成的,我们过年聚会、嗨歌,大家一起喝酒、打麻将什么的,总
共在一起不到两天,单独相处的时间不超过十分钟,那还是帮大家点宵夜的功夫。
我就是想干什么,也没时间啊,谁知道这个哥们儿哪根弦儿不对了。
求哪个大神给支个招儿,怎么甩掉这个渣男?!!!拜谢!
avatar
p*7
3
你的答案是对的啊,难道面试官觉得不对?
avatar
f*g
4
Might need to judge whether malloc is successful or not
avatar
l*o
5
Agree

【在 f****g 的大作中提到】
: Might need to judge whether malloc is successful or not
avatar
h*n
6
check pInt right after malloc

【在 d**f 的大作中提到】
: int *pInt = (int*)malloc(100*sizeof(int));
: pInt++;
: free(pInt);
: Except mem leaking, is there any other problem ?
: My suspicion is free() will mark the out of boundary mem location. So the
: behavior will be undefined.

avatar
q*8
7
Should check malloc after allocating.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。