Concept
Why is scanf() considered a risky input mechanism?
ComputerScienceOne / Converting Units
"In general, scanf() is not a good mechanism for reading input (and in fact can be very dangerous), but it does provide a good starting point."
Related Ideas
- How do you read numeric input from a user in Java with Scanner?ComputerScienceOne · Converting Units
- How can PHP read and clean user input from standard input?ComputerScienceOne · Converting Units
- How does scanf() read integer, character, and floating-point input in C?ComputerScienceOne · Basic I/O
- How can you convert a string to a number using sscanf()?ComputerScienceOne · Conversions
- Why must you use floating-point division when converting Fahrenheit to Celsius in Java?ComputerScienceOne · Converting Units