hot post

Input/Output instruction in C (part 6)

Input/Output instruction in C

Output instruction in C (part 6)
Output instruction in C

Input/Output instruction in C Hello friends, today I will tell you how we can write input / output instruction in c  language.

Standard input /Output device

  • Keyboard is standard input device.
  • Moniter is standard output device.

first, we learn output instruction. Output instruction means a statement which print on computer desktop. We take moniter is standard output device in c so, we talk  about only moniter.

We use for this a predefined function which is ' printf() '.
  • printf() is not a keyword.
  • printf() is a predefined function.

there are two type of message

  • printing text as it is.
  • printing value of expression or value of variable

Let take an example and see how we can print any message on screen.
#include<stdio.h>

#include<conio.h>
void main()
{
clrscr();
printf("virender sahu");
getch();
}

  • clrscr() - to clean the screen
  • getch() - take a charcter ( it is input instruction) 
After writing this statement we have to compile and link this file to form this .exe file which is software.

 hope this help you to learn c language I do my best way through i can understand you.
please comment and share to your friends
also follow me to get latest update on c language

Post a Comment

0 Comments