Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Error handling style in C

Following are three error handling styles in C.Which one you like the most? Or you don't like any one?1. /* Problem : Not enough. Easy to be wrong */int foo(int bar){        int return_value = 0;        int doing_okay = 1;        doing_okay = do_something( bar );        if (doing_okay)        {                doing_oka...

19,740 13       C ERROR HANDLING STYLE GOTO NESTED IF