This is a discussion on what is the purpose of return(0)? within the C++ Programming forums, part of the General Programming Boards category; please?...
as used in function main() it returns a value to the operating system and can be used by calling programs. Historically, 0 means successful completion of the program (no errors), while other return values are an error number -- the program is free to use whatever number (positive or negative) it whishes.
To return 0 ?