History of C++

  1. C++ programming is an essential of C programming language
  2. In 1971 Dennis Ritchie at Bell labs invented C programming language after reforming and rewriting the compiler of B language. So C is a modified version of B language.
  3. In 1983 C++ was invented at Bell labs by Bjarne Stroustrup.
  4. C++ is an advanced, powerful language, and easy to learn.
  5. C++ is a compiled programming language, This means original source code is translated into machine language, before run.
  6. C++ is a third generation programming language.

Compiler:

A compiler is a very specialized computer program that translates Source Code into Machine Code. 


Important point regarding C++ asked in viva exams:

  • The #include statement is used to insert the header code so your program may use the functions defined in the header file.
  • C++ supports inline functions, and constants, so is consequently more often used just for header file inclusion and conditional compilation statements.
  • Pre-processor directives are preceded with a #. The # should always be placed in the first column of the line
    Angled brackets are used to instruct the pre-processor to find the header files from the standard header file directory
                                              #include <iostream.h>

Comments in C++
Block Comments:  /*Write your more than one line Comment Between these symbols */

In-Line Comments: //one line comment goes here

Inline comments may be nested within block comments, or even inline comments.
/*

Start of a block comment.
// A legal inline nested // comment End of a block comment.
*/
  
<< Back                                                 NEXT >>

Post a Comment

0 Comments