Talk:C Programming/Simple input and output

Some implementations will let you fflush(stdin) to work as expected, but this does not work on all systems, and I don't think this behaviour is as to the standard, as such I've removed it. Dysprosia 01:12, 28 Nov 2003 (UTC)

merge
I suggest merging C Programming/Simple Input and Output into C Programming/Simple input and output. --DavidCary (talk) 23:00, 8 March 2009 (UTC)

scanf
why are we teaching scanf. we all know we should never use it
 * Should we use Fgets instead? It does terminate after a \n character is found. True, scanf is vulnerable to format string attacks, but in the context of the guide (for beginners) I think scanf is sufficient. --MithrandirAgain (talk) 06:04, 15 August 2010 (UTC)

d and i
Noob here... I was curious as to why "d" meant "integer", so I looked it up, and from what I read (correct me if I am wrong please!), "d" is not equivalent to "i". "d" literally stands for "decimal" as opposed to "hexadecimal" or "octal", whereas "i" could be interpreted as being in any base. I feel it would help to make this clear, as chances are that if someone is trying to learn C as opposed to Java, they are trying to understand what is actually going on with the programs they are writing. Thanks and sorry if I'm wrong! Finsternish (discuss • contribs) 12:52, 24 August 2015 (UTC)

Gets example before scanf
Get example for input string would be more easy as you are sure you get a char and probably then explain scanf more generic solution.