Q:

WHAT IS THE DIFFERENCE BETWEEN C AND C++?

0

WHAT IS THE DIFFERENCE BETWEEN C AND C++?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Even though C and C++ programming languages are belonging to middle level languages, both are differed in below.

  • C is structure/procedure oriented programming language whereas C++ is object oriented programming language.
  • C language program design is top down approach whereas C++ is using bottom up approach.
  • Polymorphism, virtual function, inheritance, Operator overloading, namespace concepts are not available in C programming language. Whereas C++ language supports all these concepts and features.
  • C language gives importance to functions rather than data. Whereas C++ gives importance to data rather than functions.
  • So, data and function mapping is difficult in C. But, data and function mapping is simple in C++ that can be done using objects.
  • C language does not support user define data types. Whereas C++ supports user define data types.
  • Exception handling is not present in C programming language. Whereas exception handling is present in C++ language.
  • C language allows data to freely flow around the functions. But, data and functions are bound together in C++ which does not allow data to freely flow around the functions.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now