Answer Posted / vara
There are two differences.
1) is the number of arguments. Malloc() takes a single
argument (memory required in bytes), while calloc() needs
two arguments (number of variables to allocate memory, size
in bytes of a single variable).
2)malloc() does not initialize the memory allocated, while
calloc() initializes the allocated memory to ZERO.
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What does 4d mean in c?
Explain indirection?
What is an array? What the different types of arrays in c?
Define C in your own Language.
How to Throw some light on the splay trees?
List some of the dynamic data structures in C?
Write a program of prime number using recursion.
What are the types of unary operators?
Is swift based on c?
What are the advantages of external class?
What is a pointer variable in c language?
What is realloc in c?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What kind of structure is a house?
What is an auto keyword in c?