Difference Between C And C++


DIFFERENCE BETWEEN C AND C++  :

  1. Dennis Ritchie at AT&T Bell Laboratories developed the C programming language, whereas; in the year of 1979, Bjarne Stroustrup developed the C++ programming language.
  2. C language does not support object-oriented programming approaches which clearly means that there is no support for inheritance, polymorphism, and encapsulation, etc., whereas; C++ language supports object-oriented programming approach which clearly indicates that there is support for inheritance, polymorphism and encapsulation, etc.
  3. C++ language codes cannot be run on C language platform which means that C is a subset of C++ language, whereas; C language codes can be executed on C++ language platform which means that C++ is a superset of the C language.
  4. In the C programming language, there is clear support for only procedural programming paradigm for writing the code, whereas; in the C++ programming language there is a combination of object-oriented paradigm and also procedural programming paradigm.
  5. The C language is a Procedural programming language which means that the function and data are kept away from each other, whereas; the C++ language there is a concept of objects which contains both the function as well as data.
  6. As the C programming is comparatively old as compared to C++ and thus there is no data hiding support at all, whereas; in the C++ language there is full support for the data hiding in the realm of the encapsulation.
  7. In C language there is only support for data types that are built in, whereas; in C++ language there is support for both the data types such as user-defined and built-in data types.
  8. In C programming language there are exactly about 32 keywords, whereas; in C++ programming languages there are exactly about 52 keywords.


Posted in Articles and tagged , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *