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

Is there a way to jump out of a function or functions?

832


What is the right way to use errno?

817


Explain null pointer.

804


What is %s and %d in c?

751


What are multibyte characters?

842


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

15458


What is meant by inheritance?

841


What does c mean?

763


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

969


write a program to print largest number of each row of a 2D array

2086


What is keyword with example?

819


Explain how do you sort filenames in a directory?

798


pierrot's divisor program using c or c++ code

1959


What is variables in c?

799


How can you increase the size of a dynamically allocated array?

902