What's the difference between calloc() and malloc()?
Answer Posted / k.thejonath
Malloc allocates a block of memory whereas using calloc we
can allocate array of memory blocks and all locations are
initialized to zeros
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
In c language can we compile a program without main() function?
Explain the bubble sort algorithm.
Explain what is a stream?
What are the different types of control structures in programming?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
How can I use a preprocessorif expression to ?
Is linux written in c?
What is modeling?
Explain what are global variables and explain how do you declare them?
When a c file is executed there are many files that are automatically opened what are they files?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
How do we open a binary file in Read/Write mode in C?
What is meant by gets in c?
Which node is more powerful and can handle local information processing or graphics processing?
Explain how do I determine whether a character is numeric, alphabetic, and so on?