malloc优于calloc的优势是什么? [英] What is the advantage of malloc over calloc

查看:84
本文介绍了malloc优于calloc的优势是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请回复...

Please reply...

推荐答案

2006年2月20日21:25:26 -0800,deepu <德******** @ gmail.com>写在

comp.lang.c:
On 20 Feb 2006 21:25:26 -0800, "deepu" <de********@gmail.com> wrote in
comp.lang.c:
请回复...




请定义更好。


-

杰克克莱恩

主页: http://JK-Technology.Com



comp.lang的常见问题解答.c http://c-faq.com/

comp.lang.c ++ http://www.parashift.com/c++ -faq-lite /

alt.comp.lang.learn.c-c ++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html



Please define "better".

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html


malloc优于calloc的优势是什么?即因为malloc存在

来执行内存操作,为什么需要calloc。在一个

的采访中被问到。


deepu写道:
What is the advantage of malloc over calloc. i.e. since malloc exists
to perform the memory operations why calloc is needed. Asked in an
interview.

deepu wrote:
请回复...






deepu写道:

malloc优于calloc的优势是什么?


malloc可能更小更快。

即因为malloc存在以执行内存操作,为什么需要calloc 。


因为calloc做了malloc不做的事情。

在接受采访时被问到。

What is the advantage of malloc over calloc.
It''s possible that malloc might be smaller and faster.
i.e. since malloc exists
to perform the memory operations why calloc is needed.
Because calloc does something that malloc doesn''t do.
Asked in an interview.




这两个问题是非选择性的。


-

pete



The two questions are non sequitors.

--
pete


这篇关于malloc优于calloc的优势是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆