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


Please Help Members By Posting Answers For Below Questions

will u please send me the placement papers to my mail???????????????????

1376


What is array of structure in c?

611


What is the value of c?

584


How can a process change an environment variable in its caller?

664


What is a pragma?

677






how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1380


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2040


What is the sizeof () a pointer?

561


What is strcmp in c?

608


write a program to rearrange the array such way that all even elements should come first and next come odd

1770


What is the difference between procedural and functional programming?

529


What will be your course of action for a push operation?

671


What is graph in c?

592


can any one provide me the notes of data structure for ignou cs-62 paper

1714


write a program in c language to print your bio-data on the screen by using functions.

6259