Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!samsung!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c Subject: Re: printf and scanf in IBMC on IBM 3090 Message-ID: <585@taumet.com> Date: 5 Feb 91 17:02:31 GMT References: <1991Feb4.234251.14836@ms.uky.edu> Organization: Taumetric Corporation, San Diego Lines: 15 ghot@s.ms.uky.edu (Allan Adler) writes: >When I run [this program], it refuses to execute >the first printf until after the user has typed something in for the >scanf statement, whereupon it executes both printf statements. [program works as desired when '\n' added to printf statements] This is an issue of system buffering, and when output characters appear on the user's terminal. The whole area is implementation-defined (ANSI C standard, section 4.9.3). A conforming implementation may show the behavior you describe, so long as it documents it. -- Steve Clamage, TauMetric Corp, steve@taumet.com