Hi, > > 1) What happens when we free/delete a NULL pointer? > ex: > int *p=NULL; > delete(p);// or free p; > > On my PC(linux operating system and GCC compiler) the above code ran > successfully. > I read manual pages. No information about it. According to the standards for both C and C++, nothing happens when you apply free or delete upon a NULL-pointer. > > 2) Where can I found how fee() function works? I want to see source code. > any links please. I would recommend you the source-code of your libc-Library. This might be the gnu C library - there you can get the source-code from http://www.gnu.org/software/libc/#Availability > Axel