Learn programming

Differences between C and C++:


  1. C++ is derived from the C language. C is a structured language , while C++ is an object oriented language.
  2. Dennis Ritchie developed C in 1970, while Bjarne stroustrup developed C++ in the early 1980 at Bell Laboratories.
  3. C++ is an object-oriented version of C. Object-oriented programming involves concepts that are new to programmers of traditional languages such as BASIC, Pascal and C.
  4. It's goal is clear , it's more rliable and programs can be maintained easily.

  • As compare to C, C++ has many features like improved approach to input/output and a new way to write comments. 
  1.  C++ inherits much of the efficiency of C language , as well as the readability and ease of writing programs.
  2. C++ supports the concept of encapsulation and data hiding through the creation of user-define types, called Classes.
  3. C++ supports the polymorphism concept.
    ("Polymorphism means to create multiple definitions for operators and functions.")


Compiled by: Learn C Plus Plus - (Maisam Afshar)
Previous
Next Post »