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

Answer Posted / madan gopal singh

malloc() is a one argument function while calloc() is two
argument function
malloc() take garbage value at initial time while calloc()
take null values at initial time

Is This Answer Correct ?    27 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

640


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3343


What are the salient features of c languages?

627


What is page thrashing?

655


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1470






Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

646


List some of the static data structures in C?

765


What is memory leak in c?

639


What is a rvalue?

755


When should the volatile modifier be used?

689


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

693


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

622


How do we open a binary file in Read/Write mode in C?

685


What is the difference between text and binary modes?

650


If I have a char * variable pointing to the name of a function ..

659