title: Does realloc overwrite old contents?
body: <p>When we reallocate memory via <code>realloc()</code>, are the previous contents over-written? I am trying to make a program which reallocates memory each time we enter the data into it. </p>
  
  <p>Please tell me about memory allocation via realloc, is it compiler dependent for example?</p>