c and c++ programming difference-I:
By angnima
@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