in malloc and calloc which one is fast and why?

Answer Posted / bobby sigh

malloc is more faster than calloc because malloc required
only const sign integer or datatype
while calloc required type,block
so malloc is more faster than calloc

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why clrscr is used in c?

587


How many types of operator or there in c?

603


Why dont c comments nest?

621


When would you use a pointer to a function?

589


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1497






Explain how can I manipulate strings of multibyte characters?

784


What are the basic data types associated with c?

818


Explain what are binary trees?

613


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

662


How can I use a preprocessorif expression to ?

601


How many types of operators are there in c?

615


What is #include stdlib h?

616


Is null always defined as 0(zero)?

615


What is getch c?

855


what is ur strangth & weekness

1820