Hello,
How could I make that a scanf input is always a character? and return an error if a number is put in.
Thanks
Hello,
How could I make that a scanf input is always a character? and return an error if a number is put in.
Thanks
Can you elaborate more?
Do you want to input characters and don't want digits in it?
Or just one char which is not digit?
As Bayint Naung said, you'll need to elaborate more so we have a better idea of what you're trying to do. It may help you, however, to know that in ctype.h there are several functions that will easily tell you if a function is a digit, a letter, or part of any other significant group of possible inputs.
The C Standard Library