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 does scanf() read integer, character, and floating-point input in C?ComputerScienceOne · Basic I/O
- How do fprintf() and fscanf() read from and write to plaintext files?ComputerScienceOne · Plaintext Files
- How can you convert a string to a number using sscanf()?ComputerScienceOne · Conversions
- 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
- What kinds of user input can cause problems in a quadratic-roots program?ComputerScienceOne · Computing Quadratic Roots
- Why does integer division make the Fahrenheit-to-Celsius program produce zero?ComputerScienceOne · Computing Quadratic Roots