WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / arshad
1.
calloc function takes two argument while malloc takes only 1
2.
by default memory allocated by malloc contains garbage values
whereas that allocated by calloc contains all zero.
| Is This Answer Correct ? | 49 Yes | 15 No |
Post New Answer View All Answers
What is a program?
What is the condition that is applied with ?: Operator?
What is far pointer in c?
Are the variables argc and argv are local to main?
Write a program to print all permutations of a given string.
How can you increase the size of a dynamically allocated array?
Is register a keyword in c?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
How can I write a function analogous to scanf?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What is a double c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is the default value of local and global variables in c?
What is the size of empty structure in c?