menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

return 0 i...
source image

Medium

1M

read

158

img
dot

return 0 in C/C++ — A Beginner’s Question That Deserves a Real Answer

  • In C/C++, the 'return 0;' statement is used to signal that the program has completed its execution successfully.
  • The number 0 in 'return 0;' acts as a special value sent back to the operating system or environment to indicate successful completion.
  • Returning 1 or any non-zero number in C/C++ typically indicates that something went wrong during the program's execution.
  • The return value of 0 or non-zero can be checked by scripts or other programs to determine the next course of action.

Read Full Article

like

9 Likes

For uninterrupted reading, download the app