- Program :
#include<conio.h>
void main()
{
char ip;
clrscr();
printf("\n----------------MANAGING I/O OPERATIONS----------------");
//prompt for character and get input.
printf("Type a character and press enter.n");
ip = fgetc(stdin);
//write input value back out to standard out.
fputc(ip, stdout);
printf("n");
getch();
}
- Output :
No comments:
Post a Comment