Advertisement

06.20.2008 at 06:38PM PDT, ID: 23504035
[x]
Attachment Details

malloc or calloc

Asked by zizi21 in C Programming Language

hi,

in programming point of view...is it better to use malloc or calloc for characters...

calloc initializes the input to zeros and malloc does not...does it mean that calloc is inefficient as time
is wasted to initialize to zeros and malloc does not....

which is better to use ? thanksStart Free Trial
[+][-]06.20.2008 at 06:56PM PDT, ID: 21836023

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
Sign Up Now!
Solution Provided By: jaime_olivares
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.20.2008 at 07:30PM PDT, ID: 21836101

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.

 
[+][-]06.20.2008 at 07:46PM PDT, ID: 21836137

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

 
[+][-]06.22.2008 at 02:58AM PDT, ID: 21840150

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

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