Abhishek Rai Sharma said:
(Wed, Sep 1, 2010 02:37:10 PM)
What is the difference between malloc () and calloc () ?.
Bhargavi said:
(Sun, Oct 3, 2010 08:30:45 AM)
The malloc() is used to assign the single block of memory at run time and the calloc() is used to assign the multiple blocks of memory at runtime.
Tulasi said:
(Mon, Dec 27, 2010 02:04:23 AM)
wat is ment by faralloc where it is used?
Vishak said:
(Wed, Jan 26, 2011 04:50:59 AM)
calloc expansion?
Mimi said:
(Tue, Jul 19, 2011 10:04:52 AM)
What is the differences between malloc and calloc?
Yuvapriya said:
(Wed, Sep 21, 2011 11:54:28 PM)
malloc() - allocating a block of memory dynamically and sets all the bits to zero.
Eg:
ptr = (cast-type*)malloc(byte_size);
calloc() - allocating multiple block of memory dynamically.
Eg:
ptr=(cast-type*)calloc(n, ele_size);
n-->no of blocks
Riend said:
(Thu, Sep 22, 2011 12:47:56 AM)
malloc will return an uninitialized chunk of memory for you to use.
calloc ( clear alloc ) will attempt to initialize that chunk of memory to all bits zero.