Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!ncar!gatech!udel!rochester!pt.cs.cmu.edu!henry.ECE.CMU.EDU!hairston From: hairston@henry.ECE.CMU.EDU (David Hairston) Newsgroups: comp.sys.mac.programmer Subject: Re: New Think C user Message-ID: <11860@pt.cs.cmu.edu> Date: 9 Feb 91 05:50:13 GMT References: <21005@sri-unix.SRI.COM> Organization: Gaia II Lines: 12 [mxmora@sri-unix.sri.com (Matt Mora) writes:] [] I have a beginning C programming question. This question came up in my [] C class and the instructor didn't now the anwser. Why do you have to use [] a double percent sign in a string literal to have it print a percent sign [] when all logic would indicate that a backslash percent sign should work? my guess, the '%' is interpreted before the '\' has a chance to cancel it. thus, the only way to escape '%''s is with an "operator" of like precedence. -dave- hairston@henry.ece.cmu.edu