1.

What are some of the differences between C & C++?

Answer»

Following are some of the differences between C & C++:

  • C does not support inheritance. WHEREAS, C++ supports inheritance.
  • C focuses on METHOD or process, INSTEAD of focusing on data. On the other hand, C++ focuses on data instead of focusing on method or procedure.
  • In C, scanf() and printf() FUNCTIONS are used for input / output. In C++, CIN and cout are used for input / output.
  • Reference variables are not supported by C but are supported by C++.
  • Exception handling is not supported by C, whereas     Exception handling is supported by C++.
  • C structures don’t have access modifiers, while C ++ structures have access modifiers.


Discussion

No Comment Found