What is the difference between return 0 and return 1?

In some programs we see return 0 while in others return 1 is used.What is the difference between the two?

  • Nisha
  • 18 Sep
  • 24025 Views
  • 8 Answers
Your Answer

But what really clicked was when I started writing more complex programs and had to handle multiple error states. That’s when I realized how important it is to use different return values effectively to communicate the state of the program http://mission-uncrossable.com/ I’m curious, how do others approach using return values in more complex error handling? Do you stick to the basics or have you developed your own conventions to make your code more intuitive? It’s one of those subtle things that can really improve the readability and maintainability of your code.

0
c programming
Practice Mock Test
c programming