// you’re reading...

C++ Glossary

return 0;

return 0;

  • The program ends when the following statement is executed (A-1)
  • The statement ends the invocation of the function main and returns 0 as the function’s value
  • According to the ANSI/ISO C++ standard, this statement is not required, but many compilers still require it



Example of (A-1)

return 0;


Discussion

No comments for “return 0;”

Post a comment