Path: utzoo!attcan!uunet!ns-mx!vaxa.weeg.uiowa.edu From: cmdglv@vaxa.weeg.uiowa.edu (Mark Gleaves) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: (fairly minor) non-bug in Microsoft C V6 Summary: That's not a bug, it's a feature! Message-ID: <1837@ns-mx.uiowa.edu> Date: 11 Jul 90 20:32:04 GMT References: <1829@ns-mx.uiowa.edu> Sender: news@ns-mx.uiowa.edu Reply-To: cmdglv@vaxa.weeg.uiowa.edu Followup-To: <1829@ns-mx.uiowa.edu> Organization: Center for Health Effects of Environmental Contamination Lines: 26 In article <1829@ns-mx.uiowa.edu>, I wrote... > > Here's a fun little bug that I just discovered in Microsoft C V6.0. >When I run the following: > > printf("Question marks: '??'"); > >I get the following output: > > Question marks: '^ > > It's not quite what I expected. Thanks to all of you who pointed out that ??' is a valid trigraph under the ANSI C standard. I just wish I would have known that before I wrote all those programs using MSC 5.1. Live and learn... ******************************************************************************* Mark Gleaves Phone: (319)335-9780 Center for Health Effects of Fax: (319)335-9200 Environmental Contamination Internet: cmdglv@vaxa.weeg.uiowa.edu SHRI, S-112 Westlawn Bitnet: cmdglvva@uiamvs.bitnet University of Iowa Iowa City, IA 52246 "Hurrah, boys, we've got them!" USA - George A. Custer, June 25, 1876. *******************************************************************************