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

What do you understand by normalization of pointers?

0 Answers  


Explain how can I make sure that my program is the only one accessing a file?

0 Answers  


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

0 Answers  


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

0 Answers  


write aprogram for There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.

1 Answers   iGate, Shashi, Source Bits, Subex,






Why do we use null pointer?

0 Answers  


How is pointer initialized in c?

0 Answers  


what is c

4 Answers  


#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }

12 Answers   Capital IQ, Sasken,


What are the types of arrays in c?

0 Answers  


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

0 Answers  


Should I learn data structures in c or python?

0 Answers  


Categories