Loading

C - Program - Getch Example

Getch Example




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

int main(void)
{
  int c;
  int extended = 0;
  c = getch();
  if (!c)
    extended = getch();
  if (extended)
    printf("The character is extended\n");
  else
    printf("The character isn't extended\n");

  return 0;
}

This entry was posted in . Bookmark the permalink.

Leave a reply