home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16671 < prev    next >
Encoding:
Text File  |  1992-11-20  |  897 b   |  30 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!wupost!cs.uiuc.edu!sparc0b!pjl
  3. From: pjl@cs.uiuc.edu (Paul Lucas)
  4. Subject: Re: basic question
  5. Message-ID: <By16Et.5I@cs.uiuc.edu>
  6. Sender: news@cs.uiuc.edu
  7. Organization: University of Illinois at Urbana-Champaign
  8. References: <GROSSJOH.92Nov20192207@petty.ls6.informatik.uni-dortmund.de>
  9. Date: Fri, 20 Nov 1992 20:04:05 GMT
  10. Lines: 18
  11.  
  12. In <GROSSJOH.92Nov20192207@petty.ls6.informatik.uni-dortmund.de> grossjoh@petty.ls6.informatik.uni-dortmund.de (Kai Grossjohann) writes:
  13.  
  14. >Hi all, 
  15.  
  16. >this has GOT to be a FAQ, but I ask anyway: Suppose I have:
  17.  
  18. >    int i;
  19. >    for ( i=0; i<10; i++ ) {
  20. >        cout << "Hey, you!" << endl;
  21. >    }
  22.  
  23. >After the loop, can I _rely_ on the fact that i==10?
  24.  
  25. *****>    Yes.
  26. -- 
  27.     - Paul J. Lucas                University of Illinois    
  28.       AT&T Bell Laboratories        at Urbana-Champaign
  29.       Naperville, IL            pjl@cs.uiuc.edu
  30.