c and c++ programming difference-I:

@angnima (772)
Nepal
March 3, 2007 7:49am CST
c and c++ programming difference-I: main Doesn't Provide return 0 Automatically: In C++, you are free to leave off the statement 'return 0;' at the end of main; it will be provided automatically: int main() { print( "Hello, World" ); } but in C, you must manually add it: int main() { print( "Hello, World" ); return 0; }
1 response
@dholey (1383)
• India
1 May 07
in this case c++ shows a warnning :- FUNCTION MUST RETURN A VALUE ... where it will be an error in c...