What's the difference between calloc() and malloc()?
Answer Posted / bhaswati
malloc allocates m bytes means it takes one arguments.but calloc allocate m times n bytes and initialized the memory location to zero.it takes two arguments.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain how can you tell whether two strings are the same?
What are the different types of data structures in c?
What is the difference between null pointer and wild pointer?
What is the explanation for modular programming?
Write a program to print "hello world" without using a semicolon?
What is difference between stdio h and conio h?
Is printf a keyword?
What is variables in c?
What is atoi and atof in c?
What is a keyword?
how to create duplicate link list using C???
Explain what is wrong in this statement?
Why doesnt this code work?
Are global variables static in c?
What does c mean?