Re: Regarding free function



Vijay said:

Hi All,

I have one question.

Using free we can release the memory. After releasing memory where this
released memory will go.. Does it go to back operating system or not?

The Standard says: "The free function causes the space pointed to by ptr to
be deallocated, that is, made available for further allocation."

Some people interpret this as meaning that the implementation must hang on
to the memory in case the program wants it back again... and others don't.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.