Answer Posted / namita
1-memory allocated by malloc contains garbage value.But
memory allocated by calloc is initialised to zero.
2-malloc takes only one argument which indicates the size
to be allocated.But calloc takes two arguments.First
argument indicates the number of blocks to be allocated
where as the second argument indicates the size of the
block.
| Is This Answer Correct ? | 35 Yes | 2 No |
Post New Answer View All Answers
What is data types?
What is the use of static variable in c?
Difference between linking and loading?
Tell me what is null pointer in c?
What is pointer & why it is used?
What are the 5 data types?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
Explain what is output redirection?
Is boolean a datatype in c?
What is printf () in c?
What is equivalent to ++i+++j?
Explain 'bit masking'?
What is a spanning Tree?
Why is c called "mother" language?
How can I use a preprocessorif expression to ?