Operators and Input
Increment operators and reading input safely.
3.1Pre-Increment vs Post-Increment in C: ++i vs i++The difference between ++i and i++ in C: when the value changes, what the expression returns, with compiled examples, and why it only matters inside larger expressions.3.2Checking User Input in C: Is It Really a Number?How to check that user input is a valid integer in C, using scanf's return value and a stricter fgets + strtol check, with a factorial example.
Back to top