History of C++
- C++ programming is an essential of C programming language
- 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.
- In 1983 C++ was invented at Bell labs by Bjarne Stroustrup.
- C++ is an advanced, powerful language, and easy to learn.
- C++ is a compiled programming language, This means original source code is translated into machine language, before run.
- 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
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.
|
*/
|
0 Comments