home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16154 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!haven.umd.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!nuchat!texhrc!njr
  3. From: njr@texhrc.uucp (Nick J. Rees)
  4. Subject: Re: The Correct Way To Write C if-Statements
  5. Message-ID: <1992Nov7.165603.14863@texhrc.uucp>
  6. Organization: Texaco EPTD
  7. References: <140742@lll-winken.LLNL.GOV>
  8. Date: Sat, 7 Nov 1992 16:56:03 GMT
  9. Lines: 18
  10.  
  11. Very drole!
  12.  
  13. But what does the author have to say about nested if statements?
  14. Should you place the 'if' on the same line as the preceding 'else'
  15. like it says in the Bible to prevent CRAP from marching off into
  16. oblivion? [New Testament p.23].
  17.  
  18. How about when do you use 'if ... else' and when do you use
  19. 'switch'? How should 'switch' statements be recorded?
  20.  
  21. I raise the above questions for completeness more than anything
  22. else.
  23.  
  24. -- 
  25.  ===============================Nick Rees===============================
  26.  Voice: (713) 954-6298   Email: reesnj@texaco.com
  27.   mail: Texaco, Inc., 3901 Briarpark, Houston, TX 77042
  28. ========================================================================
  29.