Thursday, 17 March 2016

conio




Hello guys, today i am gonna tell you about the header file which is <conio.h>..
here is our basic program we are gonna study all of its element line by line so today is the turn of the 2nd line / 2nd header file which is conio.h , so here's our basic program...



#include<stdio.h>
#include<conio.h>
void main()
{
 clrscr();
 printf("hello world");
}




 Conio.h stands for console input output. Many beginners misunderstood that this header file provides an interface or enable our program to interact with console. Basically this header file contain function which deals with the appearance of our console. In TC IDE our program is run by MS DOS which comes preinstalled with our windows operating system. In MS DOS that black screen which is also our output screen is called as console.
In our program we have included conio.h to call the function clrscr(); which clears everything thing written on the screen just like we use duster to clear everything which is written on the black board . There are more functions like to change background colour or to change the colour of our text .SO basically conio.h deals with the appearance of our program. It also contain some function which we will use frequently and plays an important role in C language such as getch(); (which pauses our program and is also used when user is asked to enter password ,to make the password look like ***** .).Anyways for now we can also make our program without using conio.h by eliminating function clrscr();. 


NOTE: WE ARE CURRENTLY FOCUSING ON TC IDE, LATER ON I AM GONNA TELL YOU ABOUT OTHER IDE.SOME IDE DON’T COME WITH THE HEADER FILE CONIO.H.

IN C LANGUAGE ANYTHING FOLLOWED BY parenthesis in known as function. We tell you more about this in my later on. Till then stay updated with my blog ..

Thank u!!!!



0 comments:

Post a Comment