getch gets a character from console but does not echo to the screen
Declaration:
int getch(void);
Remarks:
getch reads a single character directly from the keyboard, without echoing
to the screen.
Return Value:
Both functions return the character read from the keyboard.
Progarm
#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;
0 comments:
Post a Comment