WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / abhishek pathak mnnit
1- malloc() takes one argument while calloc takes 2 argument.
2- default value of malloc is garvage while calloc is 0;
3- malloc allocate memory in contiguous form while calloc
allocate memory in contiguous form if not avilable the takes
diffrent place.
| Is This Answer Correct ? | 88 Yes | 18 No |
Post New Answer View All Answers
Explain Function Pointer?
What is the difference between the local variable and global variable in c?
using for loop sum 2 number of any 4 digit number in c language
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Can the “if” function be used in comparing strings?
Is null always defined as 0(zero)?
Explain how can you be sure that a program follows the ansi c standard?
How can I call fortran?
How do you view the path?
Is that possible to store 32768 in an int data type variable?
given post order,in order construct the corresponding binary tree
Should I learn c before c++?
What are the usage of pointer in c?
What is call by value in c?
what is the basis for selection of arrays or pointers as data structure in a program