Answer Posted / namita
1-memory allocated by malloc contains garbage value.But
memory allocated by calloc is initialised to zero.
2-malloc takes only one argument which indicates the size
to be allocated.But calloc takes two arguments.First
argument indicates the number of blocks to be allocated
where as the second argument indicates the size of the
block.
Is This Answer Correct ? | 35 Yes | 2 No |
Post New Answer View All Answers
What does c mean?
Explain how do you use a pointer to a function?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
What does stand for?
Why is c known as a mother language?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
Compare interpreters and compilers.
What is the difference between printf and scanf )?
Explain what is the difference between functions getch() and getche()?
What are the different types of endless loops?
What is bubble sort in c?
What is the purpose of scanf() and printf() functions?
What's the right way to use errno?
How do you view the path?
What is the general form of a C program?