title: Why are the contents pointed to by a pointer not changed when memory is deallocated using free()?
body: <p>I am a newbie when it comes to dynamic memory allocation.  When we free the memory using <code>void free(void *ptr)</code> the memory is deallocated but the contents of the pointer are not deleted. Why is that? Is there any difference in more recent C compilers?</p>