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

Answer Posted / sudhir

malloc used to static memory allocation &
calloc is used to dyanmic memory allocation

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I determine whether a machines byte order is big-endian or little-endian?

609


What is action and transformation in spark?

585


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

545


Write a program to print “hello world” without using semicolon?

664


What are the string functions? List some string functions available in c.

594






any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

648


What is the -> in c?

571


Write a program to use switch statement.

650


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

650


What is nested structure in c?

600


find the sum of two matrices and WAP for it.

621


What is dynamic memory allocation?

796


Is array name a pointer?

594


What is chain pointer in c?

593


What is c language & why it is used?

569