home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uunet.ca!geac!r-node!pseudo!mjn
- From: mjn@pseudo.uucp (Murray Nesbitt)
- Subject: Re: Help - What Is Wrong?
- Organization: Private system in Toronto, ON
- Date: Sat, 7 Nov 1992 11:03:12 GMT
- Message-ID: <MJN.92Nov7030312@pseudo.uucp>
- In-Reply-To: hartman@ulogic.UUCP's message of 4 Nov 92 00:19:32 GMT
- References: <720002131.AA03045@csource.oz.au> <FISCHER.92Oct25124334@steiner.iesd.auc.dk>
- <536@ulogic.UUCP>
- Sender: mjn@pseudo.uucp (Murray Nesbitt)
- Lines: 17
-
-
- hartman@ulogic.UUCP (Richard M. Hartman) writes:
-
- >>JC> for(idx=0;idx!=5;idx++){ 3
- >>JC> r=&address[idx]; /*AND HERE*/ 3
- >>
- >>What on earth is going on here? Why is "r" repeatdly being assigned a
- >>(ignored) value?
- >
- >No we aren't. If it were "idx < 5" we might be, but w/ "idx != 5"
- >we don't go through at all. It's FALSE right off the bat.
-
- Eh? Unless the semantics of ``for'' have changed recently, this loop
- will iterate five times (barring any asynchronous access of ``idx'').
-
- --
- Murray
-