calloc is used like calloc(no_of_elements,size_of_element).
During memory allocation deallocation. you will create a hole in heap. which you can use for memory allocation.
Now my question is.
is it possible to use such hole for memory allocation which are not continuous in memory. suppose you have 10 holes of 1 byte no continous. now you need 10 bytes. if i will use malloc it will fail but when i will use calloc, will it allocate.
second thing, i am assigning the address of hole to pointer which will monitor 10 bytes. but how can i access rest 9 bytes.
i am completely confused, where should i use calloc and malloc.