Path: utzoo!utgpu!watserv1!watmath!att!rutgers!ucsd!sdd.hp.com!samsung!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: execution out of order ? Keywords: stdin, getchar, stdout Message-ID: <1990Jul21.024817.6931@virtech.uucp> Date: 21 Jul 90 02:48:17 GMT References: <6687@helios.TAMU.EDU> <6732@helios.TAMU.EDU> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 29 In article <6732@helios.TAMU.EDU> jdm5548@diamond.tamu.edu (James Darrell McCauley) writes: >I'm an reposting this question because, as 1 of the 2 responses >mentioned, I may have not made myself quite clear. >Here's the code fragment: When you post a message with a code fragment, post the entire fragment that exhibits the indicated behavior. I ran you fragment (deleting the elipsisi) and it acted as on would expect. I don't know what the missing code is, but it probably has something to do with the problem. > main() > { > ... > getchar(); /* stdin, as well as stdout, are console */ > printf("first line\n"); > ... /* calculations - no I/O */ > printf("second line\n"); > getchar(); > printf("third line\n"); > } So show us the missing code or post an exact copy of the code that presents the problem. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170