What is C++? How is it Different From C?

Share Your Love

Before knowing about C++, we must know some basic computer knowledge but if you are not a newbie and just looking for some brief facts and definitions, you can skip this part.

So, A computer is a device that can perform a multi-computational task but since it’s a machine, it cannot do anything on its own.

To get any job done, we need to give instructions to the computer according to which it will work.

The instructions we give to the computer is called a program.

The person giving the instructions is called a programmer and the language programmers to give instructions is called programming language. So, programmers can use any language available to do programming. C++ is one such programming language.

History Of C++ And C:

C++ is developed by Bjarne Stroustrup in 1979 at AT&T’s Bell Labs. When it is was developed, it was called C with classes.

The purpose behind its development was although C was famous and widely used it had its own limitations. C++ was developed with OOPs feature which was influenced by a language that existed at that time called Simula 67.

In 1983, the name was changed to C++. Interestingly, the’++’ is an operator in the C language which is used for increment. Since C++ was an increment of C, it was named so.

What is C++:

C++ is an object-oriented programming language(OOP). C++ being well structured and Oops based it is a lot safer than C.

C++ is procedural, generic, modular, functional and object-oriented. These features make C++ very powerful and efficient.

This is the reason why despite being old C++ is still widely used and is present in deep roots of the technical and online world.

Features of C++:

It supports features of C as well as some of its own features listed below:

  • Array
  • Structure
  • Class
  • Object
  • Constructor
  • Destructor
  • Inheritance
  • Polymorphism
  • Encapsulation
  • Namespaces
  • Pointers

It has many more features which are not listed here.

Uses of C++:

C++ being fast, reliable, efficient and user-friendly used in different fields like:

  • Games
  • Graphics designing
  • OS building
  • Applications and web frameworks like Microsoft .NET
  • Browsers
  • Libraries
  • Cloud systems
  • Compilers

How is C++ different from C:

Despite being an advanced version of C, C++ is very different from C.

The basic and common differences are:

  1. C doesn’t support features like polymorphism, encapsulation and inheritance like C++. This is the reason it’s not Object-oriented.
  2. In C, data and functions are separated as it is a procedural programming language while C++ encapsulates data and functions.
  3. C has 32 keywords while in addition to these keywords C++ has extra 31 keywords totalling 63.
  4. C doesn’t support function and operator overloading while C++ does.
  5. Namespace feature is used in C++ but not in C.
  6. Data can’t be hidden in C, while in C++ it can be done by encapsulation to ensure the right use of data.
  7. C and C++ have different header files, stdio.h and iostream respectively.]
  8. Virtual and friend functions are supported by C++ but not by C.
  9. Exceptional handling is not directly supported by C but it is supported in C++.
  10. C and C++ use different functions for different tasks like malloc() and calloc() in C and new operator in C++, like printf and scanf in C and cin and cout in C++.
  11. C doesn’t have access modifiers while C++ does.

Please write comments or WhatsApp if you find anything incorrect, or you want to share more information about the topic discussed above.

Share Your Love
Shiva Patra
Shiva Patra

Hello, this is G. Shiva. Patra, your content writer for this website, is currently pursuing BCA for a graduation degree. I am here to write content based on C++ and similar kind of stuff.
I like the tech world as it grows really fast and you have great things to learn every day which keep you away from boredom. So, I have some knowledge on very different topics related to tech like the dark web, deep web, onion rooting, IoT, Cybersecurity, and I always keep track of new devices and software used by them as every tech enthusiast does.

Articles: 9

Newsletter Updates

Enter your email address below to subscribe to our newsletter