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

Answer Posted / divya sharma

malloc takes the single argument nd calloc takes two argument
malloc initialize byte of memory while calloc initialize the
block of memory

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to implement a packet in C

2398


What is graph in c?

584


What is difference between main and void main?

630


How variables are declared in c?

571


What is wrong with this declaration?

613






Differentiate between static and dynamic modeling.

620


What are the 4 types of functions?

573


Why is main function so important?

617


Write a function that will take in a phone number and output all possible alphabetical combinations

605


What is pragma in c?

629


Are global variables static in c?

676


What is a buffer in c?

575


What is a void * in c?

597


Difference between goto, long jmp() and setjmp()?

710


What are header files and explain what are its uses in c programming?

612