Program:
#include<conio.h>
void main()
{
clrscr();
printf("Welcome to C Programming");
getch();
}
Output:
Welcome to C Programming
Explanation:
#include<stdio.h> :
It is a preprocessor file which include the header file of stdio.h(standard input output ) header file. In these header file contains the functions of printf(), scanf(), etc.,
#include<conio.h>
It is a preprocessor file which include the header file of conio.h(console input output ) header file. In these header file contains the functions like clrscr(), getch(), etc.,
void main(){}
In these Main function we can write our entire program with statements.
void => It tell is an Empty argument
clrscr()
This function clears the console screen of any previous outputs so that the output of the program currently executed alone is visible on the console screen.
No comments:
Post a Comment