in malloc and calloc which one is fast and why?



in malloc and calloc which one is fast and why?..

Answer / 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

More C Interview Questions

#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?

6 Answers   NDS,


what will be the output of this program........ main() { int a=2,b=4,c=6; printf("%d"); } why it gives the value of third variable.

6 Answers   HCL,


Predict the output or error(s) for the following: 25. main() { printf("%p",main); }

3 Answers   Google, ME,


64/square(4)

1 Answers  


What oops means?

0 Answers  


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

0 Answers  


Why is C language being considered a middle level language?

0 Answers  


What is #pragma statements?

0 Answers  


What are enums in c?

0 Answers  


What are the key features of C?

6 Answers  


What is key word in c language?

4 Answers   ABC,


What is the difference between typedef and #define?

0 Answers  


Categories