Syntax of c++ program

syntax of c++


#include<iostream.h>
#include<conio.h>
Void main()
{
clrscr();
cout<<"hello word ";
getch();
}

#.                                                   
1.Iti called preprocessor.
2.It is include the library of c++ into the program before the exicution.

Include.                                       
To Include the header file into the program.

Iostream.                                    
  1. Its stands for input output stream.
  2. It is a collection of predefined function.
  3. It is also called library of c++.

Conio.                                           
  1. It is stands of console input output.
  2. It is used to show the output on console window.
Void.                                           

  1. It is a keyword.
  2. It indicate that no one value is begining  returned by the function.
  3. If we use any other keywords like int,char,float, double ,etc in place of void then we will use return keyword. 
Main.                                           
  1. It is the function which is called the entry point of any program.
  2. The exicution of any program start from the main function.
  3. If in a program there is only one function than it shoulb be main function.
Clrscr().                                       
  1. It is stands for clear screen.
  2. It is a predefine function which is use to clear screen. 
  3. Itact like a duster on output screen. 

cout.                                          
  1. It is a keyword which is use to print data or information on to the output screen.
  2. It is always use with insertion opretor.

Comments

Post a Comment

If you have any doubt. Please comment me know.

Popular posts from this blog

Function in C++ with example & declaration, initialization function in c++

Operators of c++

Array in c++ programming