Talk:Guess the number/With feedback (player)

From Rosetta Code
Revision as of 21:57, 28 June 2011 by rosettacode>Ledrug (observation about the C example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

C code, -Wall, and end of main()

Hitting "Y" is not the only way to end main(). Try ctrl-D, and your program will exit with code 255 (or whatever eof is). Generally, using scanf() for interactive input is a bad idea, just so you know. --Ledrug 21:57, 28 June 2011 (UTC)