What is the difference between C and C++

As we know that C++ is an extension of C but there are many differences between them. We will discuss some of them now.


1. C is a procedure oriented language whereas C++ is both procedure and Object oriented language.


2. Coming to security C++ is more secured than C.It is due to the data hiding features like encapsulation of C++.


3.C++ uses the Top down approach whereas C uses the opposite that is bottom-up approach.


4.C++ supports function overloading, exception handling which are not supported by C.


5.C was developed by DENNIS RITCHIE whereas C++ was developed by Bjarne Stroustrup.


0 comments:

Post a Comment