What's the difference between calloc() and malloc()?
Answer Posted / bhaswati
malloc allocates m bytes means it takes one arguments.but calloc allocate m times n bytes and initialized the memory location to zero.it takes two arguments.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I use strcmp?
Difference between Shallow copy and Deep copy?
Why is #define used?
What does it mean when a pointer is used in an if statement?
how to introdu5ce my self in serco
How can you determine the size of an allocated portion of memory?
What does sizeof return c?
What should malloc() do?
Why c is called free form language?
Why static is used in c?
Can you please explain the scope of static variables?
Explain what is output redirection?
Why main is not a keyword in c?
Why structure is used in c?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a