Advertisement

08.24.2007 at 05:48PM PDT, ID: 22786288
[x]
Attachment Details

malloc vs calloc

Asked by zizi21 in C Programming Language

Tags: calloc, malloc, vs

hi,

is it better to use malloc or calloc. The only downfall i see with calloc is the work associated to initialize the string to zero.

Pls clarify. thanks.ziziStart Free Trial
[+][-]08.24.2007 at 07:39PM PDT, ID: 19766617

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C Programming Language
Tags: calloc, malloc, vs
Sign Up Now!
Solution Provided By: jamcos
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.26.2007 at 04:49AM PDT, ID: 19770730

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628