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

Answer Posted / bavithra

malloc() doesnot initialize the allocated memory
calloc() initializes the allocated memory to ZERO

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is main return c?

519


Is c pass by value or reference?

595


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2055


How was c created?

589


What is the difference between c &c++?

647






Can you please explain the difference between exit() and _exit() function?

594


i have a written test for microland please give me test pattern

2183


Explain what are the different file extensions involved when programming in c?

633


What's the right way to use errno?

625


What are the features of the c language?

648


What is break in c?

587


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

1663


how can I convert a string to a number?

597


What does d mean?

585


Explain what is page thrashing?

611