hi, every body i have on doubt. My doubt is when we allocate memory 
dynamically we uses malloc system call .For freeing we uses free
system call.For ex:- ptr = malloc(10);
 it allocates 10 bytes of memory  and
  free(ptr);
 it releases that memory ,my doubt is how free system call would knows
how many bytes to free .I studied some where after allocating memory
the adjacent cell contains the how many bytes it allocates .By using
this free system call will works. My actual doubt is in my example
after allocating 10 bytes , is 11'th byte contains the total bytes
information?If not where total information resides? 

Reply via email to