1.

How C++ Is More Advantageous As Compared To C ?

Answer»

C and C++ both are the computer programming languages. Both the languages enable us to write EFFICIENT CODE. As C++ is an advanced version of C language, therefore it has some extra features than C languages.

The main advantages of C++ over the C language are given below:

  • As C++ is an object-oriented language, hence SUPPORT the function overloading, whereas C language does not support function overloading.
  • C++ provides the property of data hiding, whereas C does not provide this feature
  • C++ supports exception handling, whereas C does not support the exception handling concept
  • C++ provides a concept of classes and objects, wherein C language there is no such concept.

C and C++ both are the computer programming languages. Both the languages enable us to write efficient code. As C++ is an advanced version of C language, therefore it has some extra features than C languages.

The main advantages of C++ over the C language are given below:



Discussion

No Comment Found