@ne555 thanks..that solved the prob..;)...but can you please explain the compiler schema to take a call on it...I am using gcc..Moreover why c++ shell in cplusplus.com is giving me 1
Moreover why c++ shell in cplusplus.com is giving me 1
This is what is meant by undefined behavior. You're using some component of the language in a way that it wasn't intended. So the standard doesn't dictate what the outcome would be.