+ 8
malloc() vs calloc()
What is the deference between the both They are do the same think theoretically (allocates contiguous bloces of memory) malloc takes the size in byte Calloc takes a number of items and the size of type When I can NOT use malloc and when I can't use calloc
5 Antworten
+ 3
yes ABADA S , malloc nd calloc do same thing that is used to allocate memory dynamically for c language... difference of argument in malloc and calloc is already described by you..
main difference is that malloc just allocates memory block nd returns to us where as calloc first allocates memory block and then initialise it with zero.... so, calloc takes a bit more time as it initialise also compared to malloc.
+ 5
Good job
Thanks for helping
+ 3
Thanks master Ketan Lalcheta I got it
Java guy I did not find my other post
I tried to use google but I field
+ 1
You posted this question twice please delete this one, i am a Java guy tho hope someone help you, or else you can use google☺