I have seen in different text/source code that a variable that will get the getchar() result is declared in some code listings as int and in other code listings as char.
Which is the proper approach?
Thank you.