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 सितम्बर
  • 24195 दृश्य
  • 8 उत्तर
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
मॉक परीक्षण अभ्यास के लिए
c programming