WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / ananth kumar
malloc
Holds 1 argument data type
allocates memory byte equivalent to data type
not init alloted memory
Calloc
Holds 2 arguments, data type and number of datas (n)
allocates memory block equivalent to n * data type
clears alloted memory with 0
| Is This Answer Correct ? | 173 Yes | 39 No |
Post New Answer View All Answers
Are negative numbers true in c?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What are the different types of errors?
Without Computer networks, Computers will be half the use. Comment.
can any one tel me wt is the question pattern for NIC exam
what will be the output for the following main() { printf("hi" "hello"); }
how to create duplicate link list using C???
what is the different bitween abap and abap-hr?
What does s c mean on snapchat?
Compare array data type to pointer data type
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
In which language linux is written?
What is a pointer variable in c language?
What does printf does?
differentiate built-in functions and user – defined functions.