Coding in C : Keyboard

#include 
#include 
 
int main (int argc,char *argv[])
{  
    unsigned char key;
    key=cgetc(); // Wait a key
    printf("Ascii code : %c\n",key); /// Display key
}