what is the difference between malloc() and calloc() function?
Answer Posted / amritha rose
malloc will allocate memory according to the size we
specified
calloc vil allocate memory as blockwise
and initialize by 0
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
How can I split up a string into whitespace-separated fields?
How do you override a defined macro?
How is actual parameter different from the formal parameter?
What is the full form of getch?
Can you subtract pointers from each other? Why would you?
What is variable initialization and why is it important?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is logical error?
Why c is known as a mother language?
What are the usage of pointer in c?
What is nested structure with example?
Explain the ternary tree?
Describe explain how arrays can be passed to a user defined function
How to draw the flowchart for structure programs?
Write program to remove duplicate in an array?