+ 5
because getchar([type]) is not defined in the C standard
15th Mar 2021, 4:10 PM
「HAPPY TO HELP」
「HAPPY TO HELP」 - avatar
+ 4
Well if you really want it the other way... #define getchar(c) c=getchar() But you should probably just use c=getchar() to be honest ^^
15th Mar 2021, 9:28 PM
Alex
Alex - avatar
+ 3
Because thats just not how it works, not sure of the parameters, but it returns the next character in the stream. try: a = getchar(); printf("%c\n", a);
15th Mar 2021, 4:09 PM
Slick
Slick - avatar
+ 3
because it's meant for a different use
15th Mar 2021, 4:30 PM
「HAPPY TO HELP」
「HAPPY TO HELP」 - avatar
+ 3
the person/people who wrote it decided it and we just accept it and use it or write our own if we don't like their's ¯\_(ツ)_/¯
15th Mar 2021, 4:31 PM
「HAPPY TO HELP」
「HAPPY TO HELP」 - avatar
+ 2
haha
15th Mar 2021, 4:32 PM
「HAPPY TO HELP」
「HAPPY TO HELP」 - avatar