Saturday, 8 July 2017


Getche function

Getche is same as getch function, both takes input from keyboard the difference is return type.
  • Getch does not echo given character only return integer value
  • Getche  echo and return integer code of given character

void main()
    char n;

    printf("Enter number>> ");
    n=getche();  /* input will be echo */