DEV Community

Md Rasheduzzaman
Md Rasheduzzaman

Posted on

What is the difference between C and C++?

C and C++ are programming languages that are used for developing applications, games, database systems, operating systems, and more. While both C and C++ may sound similar, their features and usage are different.

C

  1. C is a procedure-oriented programming language
  2. It follows a top-down approach
  3. C doesn’t support function or operator overloading
  4. C language doesn’t support virtual and friend function
  5. C language has 32 keywords

C++

  1. C++ is a partially object-oriented programming language
  2. It follows a bottom-up approach
  3. C++ supports function as well as function overloading
  4. C++ language supports both virtual and friend functions.
  5. C++ language contains 52 keywords

Read related articles:
C++ header

Top comments (0)