C++ compilers & Structure of C++ Program

Ratings:
(4)
Views:990
Banner-Img
  • Share this blog:

C++ compilers

  1. Turbo c++
  2. sone and c++
  3. Micros of + c++
  4. Dev c++
  5. C++ on Linux
  6. C++ on Unix
  7. C++ on Unix os
  8. C++ on solaries
  9. C++ on MAC

The latest version of c++ compiler is c++ on (++12)  

Structure of C++ program :

it is divided into 5 sections  

Document section
Linkage section
Global declaration
Main program section
Global data section

       

  1. Document section:

  • This section contain information about program on program heading
  • It is provided by using comments
  • c++ provide 2 types of comments
  1. single line(//)
  2. Multi line (/* *\)

Linkage section : C preprocessor directive section It is a programming     (# include)

  • Any operation which has to be performed before compile program are defined this section

 

Global declaration :

It is used to declare global variable and function and types

Main program            

void main() { }                                 Main without arguments   void main(int arg c, char *arg[])    Main with arguments { }  

Global definition :

Definition functions and types which are declared inside global declaration void Main(int argc, char *arg v[], char *array) { }

  • Compiler works as translation program between high level languages to low level language.
  • Main is not recognized by compiler it is recognize by Linker 1

   

You liked the article?

Like : 0

Vote for difficulty

Current difficulty (Avg): Medium

Recommended Courses

1/15

About Author
Authorlogo
Name
TekSlate
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.


Stay Updated


Get stories of change makers and innovators from the startup ecosystem in your inbox