Hi People,
Please find my queries mention below.
--------------------------------------------------------------------------------------------------------
How is memory allocated by malloc?
Is the memory allocated contiguous? Is so, What if the requested number of bytes are not available contigously?
Is casting really required?? If u don't cast the pointer what will be the disadvantage?
What is the difference between calloc and malloc in terms of memory allocation?
--------------------------------------------------------------------------------------------------------
I will be happy if some body could give me a diagramatic representation of the memory allocated by these two functions(calloc & malloc).
Regards
Swapna