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

Write a program to identify if a given binary tree is balanced or not.

0 Answers   JPMorgan Chase,


What is c programming structure?

0 Answers  


How does sizeof know array size?

0 Answers  


what is the code to display color fonts in the output?

1 Answers  


Is there a way to compare two structure variables?

0 Answers  






what is available in C language but not in C++?

10 Answers   CTS, TCS,


Write a program to find whether the given number is prime or not?

6 Answers  


how to write a data 10 in address location 0x2000

3 Answers  


What is indirection?

0 Answers  


printf("%d",(printf("Hello")); What it returns?

32 Answers   TCS,


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

0 Answers  


Struct(s) { int a; long b; } Union (u) {int a; long b; } Print sizeof(s)and sizeof(u) if sizeof(int)=4 and sizeof(long)=4

2 Answers   Mascot,


Categories