WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?

Answer Posted / datta khilari

1.malloc() takes one argument and allocates memory in a
bytes and return to the pointer.
1.calloc() takes two argument and allocates memory in a
blocks and return to the pointer.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is realloc in c?

585


What is nested structure?

590


Explain why can’t constant values be used to define an array’s initial size?

874


What is pass by reference in c?

621


How can you convert integers to binary or hexadecimal?

628






what is a function method?give example?

1924


What is p in text message?

549


How can I list all of the predefined identifiers?

589


What is a structural principle?

649


What is #include in c?

612


Function calling procedures? and their differences? Why should one go for Call by Reference?

643


What is the difference between fread and fwrite function?

644


What are conditional operators in C?

632


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4185


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

595