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

Mention four important string handling functions in c languages .

640


What is difference between main and void main?

641


Suggesting that there can be 62 seconds in a minute?

608


When should the register modifier be used? Does it really help?

629


Write a code to generate divisors of an integer?

649






Is c programming hard?

588


What does a function declared as pascal do differently?

622


Explain the difference between strcpy() and memcpy() function?

603


Why c is procedure oriented?

584


Why do we use int main?

623


What is array of structure in c?

611


Write a program to check whether a number is prime or not using c?

586


Explain what does it mean when a pointer is used in an if statement?

625


What is queue in c?

588


Is main is a keyword in c?

620