#include <stdio.h>
#include <conio.h>

int main(void){
    int c = _getch(void);

    printf("%c", c);

    return 0;
}


테스트코드


[test.c 2020-06-27 08:04:04.809]
,,test.c: In function 'main':
test.c:5:17error: expected expression before 'void'
  int c = _getch(void);
                 ^~~~
test.c:5:10error: too many arguments to function '_getch'
  int c = _getch(void);
          ^~~~~~
In file included from test.c:2:0:
c:\mingw\include\conio.h:29:37: note: declared here
 _CRTIMP int __cdecl __MINGW_NOTHROW _getch (void);


에러메세지