Sunday 22 July 2012

Unformatted Input functions: getch() | getche() | getchar() | fgetchar()

 Unformatted I/O functions : getch() , getche() , getchar() , fgetchar()
#include<stdio.h>
#include<conio.h>

int main()
{

char ch;

printf("\n(using getch) Press any key to continue..");

//character will not be echoed by getch()
getch();

printf("\n(Using getche())Press any key to echo..." );
//character will be echoed by getch()
ch=getche();

printf("\n (Using getchar())Type any character:");
getchar();//macro present in conoio.h

printf("\n(Using fgetchar()) Type another character:(Y/N)");
fgetchar(); //function present in conio.h


return 0;
}
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: