"Always add a leading space before the first control string character to ensure accurate character input."
This is to consume any trailing character in the stdin that might have been left by previous user input (like the carriage return), before the scanf reads the user input.