C VS C++

C++ was developed by Bjarne Stroustrup at Bell labs in 1979, as an extension to the C language.

The major difference between C and C++ is that C is a procedural programming language; which means that it is derived from sequential step by step structured programming. Some of it's applications includes scheduling running of other programs, designing games, graphics etc.

On the other hand C++ is a combination of procedural programming as well as object oriented programming. Objects consists of Data in form of it's characteristics and are coded in the form of methods. In object oriented programming computer programs are designed using the concept of objects that interact with the real world.

Some other differences include:

C                                                         C++

Since C is a procedural programming, it is a function driven language.

C++ is an object driven language.

In C, functions cannot be defined inside structures

In C++, functions can be used inside a structure.

C uses functions for input/output. For example scanf and printf.

C++ uses objects for input output. For example cin and cout.

C does not provide direct support for error handling (also called exception handling)

C++ provides support for exception handling. Used for errors that make the code incorrect.

C does not support reference variables.

C++ supports reference variables.