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

Answer Posted / vini sharma

malloc()
allocates byte of memory and calloc() allocates block of
memory.

Is This Answer Correct ?    50 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does a pointer variable always consist of?

651


Explain the advantages of using macro in c language?

566


Is it better to use a macro or a function?

637


What is far pointer in c?

795


List the variables are used for writing doubly linked list program.

1607






Describe newline escape sequence with a sample program?

635


What is #ifdef ? What is its application?

633


I heard that you have to include stdio.h before calling printf. Why?

576


Can you think of a logic behind the game minesweeper.

1991


Can we initialize extern variable in c?

616


What are dangling pointers in c?

627


What is the mean of function?

635


What are dangling pointers? How are dangling pointers different from memory leaks?

606


Explain can you assign a different address to an array tag?

630


What is class and object in c?

577