calloc()和malloc()之间的区别
问题描述:
calloc()和malloc()之间的区别
difference between calloc() and malloc()
答
2008年2月13日星期三20:49:47 +0100,manish sahu< ; ro ******** @ yahoo.com>
写道:
On Wed, 13 Feb 2008 20:49:47 +0100, manish sahu <ro********@yahoo.com>
wrote:
calloc()和malloc()之间的区别
difference between calloc() and malloc()
RTFM
RTFM
2月13日下午1:49,manish sahu< rocky_m ... @ yahoo.comwrote:
On Feb 13, 1:49 pm, manish sahu <rocky_m...@yahoo.comwrote:
calloc()和malloc()之间的差异
difference between calloc() and malloc()
你不应该如果你可以帮助它,可以使用C ++中的任何一个。请改为使用
operator new。
You shouldn''t be using either one in C++ if you can help it. Use
operator new instead.
2月13日上午11:56,Christopher< cp ... @ austin.rr.comwrote :
On Feb 13, 11:56 am, Christopher <cp...@austin.rr.comwrote:
2月13日下午1:49,manish sahu< rocky_m ... @ yahoo.comwrote:
On Feb 13, 1:49 pm, manish sahu <rocky_m...@yahoo.comwrote:
calloc()和malloc()之间的区别
difference between calloc() and malloc()
如果可以帮助它,你不应该使用C ++中的任何一个。请使用
operator new。
You shouldn''t be using either one in C++ if you can help it. Use
operator new instead.
新构造对象但malloc和calloc保留原始内存;
不同...
Ali
new constructs objects but malloc and calloc reserve raw memory;
different...
Ali