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

Write programs for String Reversal & Palindrome check

592


What is the difference between array_name and &array_name?

768


What is spark map function?

577


What is meant by recursion?

621


What is a const pointer?

624






write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1445


Differentiate between the = symbol and == symbol?

700


What are c identifiers?

621


What is meant by operator precedence?

664


What is the importance of c in your views?

585


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

607


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1171


What is use of #include in c?

588


What does c in a circle mean?

572


What’s a signal? Explain what do I use signals for?

599