Wednesday, April 22, 2020

Managing I/O operations in C

  • Program :
#include <stdio.h>
#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

Function Overloading in C++

https://monitechvenkat1620.blogspot.com Program : #include <iostream> using namespace std; int c(int x, int y) {   return...