Quote Originally Posted by pkt-zer0
Getchar would be better in case of a menu, since it's not buffered, by default. With scanf that would require flushing the buffer on erroneous input. Your call, anyway, but unless you need to read more than one character at a time (like, inputting a name, a date, or something similar), use getchar.
well its just for the start of my morse code program, I want the user to select a bunch of options for example

Morse code conversion program

write text to be converted: 1
select a text file to be converted: 2

and so on and so on, and any other option would simply yield a the same prompt if you know what I mean.