Soumyadip Modak
Wed, 12 Feb 2003 22:50:51 -0800
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanx to all who have helped me. The problem was a misssing & in the scanf func.
> Hi, > Try to avoid scanf function as much as possible, > instead use fgets and sscanf combo for stdio which has > got much more efficient error checking. This is most > recommended procedure as i have found in comp.lang.c group. > For a much better explanation follow this link. http://www.eskimo.com/~scs/C-faq/s12.html Check out question no 12.12 and 12.20 bye siddhartha I agree with your suggestion, but the powers that be prefer us using scanf. No way I can do anything againt their wishes, at least for the lab exercises :( > > I'm right now not on the machine that has the gcc3.2 compiler, but > compiling this program with gcc2.91 shows a syntax > error in the line > that says "scanf .... ". Obviously, "celsius" should > be "&celsius". I > wonder why the compiler on your machine didn't > signal this error at Yeah I'd like to know the experiences of other people re: this. Funny that the gcc3.2 didn't catch it first time around, while gcc2.91 did. Sdg: >..hehe same mistake that I made with my 1st C prog. ;-) Makes me feel better. :) Soumyadip Modak RCC Institute of Information Technology Kolkata, India -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com> iQA/AwUBPkr+FAAMO//EcNNiEQL4nQCffRO40XloqU7mgO0uPEAI/Z7jyPIAoKFQ q11O8NGSRqNV3AMukV7J5atB =kPhO -----END PGP SIGNATURE----- -- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3