A BRIEF DESCRIPTION ON C++

 Submitted By : Snehangshu Ghosh

(Department of BCA, Batch :2017-2020)

Let us discuss about C++.

 

So,what is C++

C++ is a high-level programming language developed by Bjarne Stroustrup at Bell Labs. C++ adds object-oriented features to its predecessor, C. C++ is one of the most popular programming language for graphical applications, such as those that run in Windows and Macintosh environments.

 

Why we use c++:

 

C++ is one of the world's most popular programming languages. C++ can be found in today's operating systems, Graphical User Interfaces, and embedded systems. C++ is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs.

 

Example of C++:

 

Hello World Program

 

#include <iostream>

 

using namespace std;

 

int main() {

 

cout << "Hello, World!";

 

return 0;

 

}

 

Output:Hello, World!


 

 

Advantages of C++:

 

1.Object oriented

 

2.Portable language (writing a program irrespective of operating system as well as Hardware)

 

3.Low-level language like Assembly language on Machine language called portable.

 

4.C++ use multi-paradigm programming. The Paradigm means the style of programming paradigm concerned about logics, structure, and procedure of the program. C++ is multi-paradigm means it follows three paradigm Generic, Imperative, Object Oriented.

 

5.It is useful for the low-level programming language and very efficient for general purpose.

 

6.C++ provide performance and memory efficiency.

 

7.It provides a high-level abstraction.

 

8.In the language of the problem domain.

 

9.C++ is compatible with c.

 

10.C++ used reusability of code.

 

11.C++ used inheritance, polymorphism.

 

Disadvantages of C++:

 

1.It has no security

 

2.Complex in a very large high-level program.

 

3.Used for platform specific application commonly.

 

4.For a particular operating system or platform, the library set has usually chosen that locks.

 

5.When C++ used for web applications complex and difficult to debug.

 

6.C++ can't support garbage collection.

 

7.C++ is not secure because it has a pointer, friend function, and global variable.

 

8.No support for threads built in.