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

Answer Posted / shruti

malloc will only allocate space in the memory..

calloc will allocate space in the memory as well as
initialise it to a particular value.

Is This Answer Correct ?    134 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you determine a file’s attributes?

610


differentiate built-in functions and user – defined functions.

639


In a byte, what is the maximum decimal number that you can accommodate?

630


What is the use of getch ()?

642


What is pass by reference in functions?

331






What does int main () mean?

558


What are the different file extensions involved when programming in C?

769


What is this pointer in c plus plus?

602


What is scope rule in c?

609


Explain what will the preprocessor do for a program?

607


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1458


What is struct node in c?

626


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1605


What is binary tree in c?

630


What is graph in c?

588