C++, as the name suggests, is a superset of C. As a matter of fact, C++ can run most of C code while C cannot run C++ code.
There are several advantages with c++ compared with c - for instance
- data can not be hidden in c language
- c is more low level (which mean harder to understand and code - and that means more bugs)
- c does not allow function overloading
- c does not support exception handling
- you can use functions inside structures in C++ but not in C
This list could certainly be much longer - but here comes my question: Is there ANY advantage with c-langauge compared with c++? Is there anything whatsoever that is better with c than with c++? Does c have anything that c++ lacks?
I do not know about this at all - but could c possibly be slighty faster than c++ due to fewer instruction-sets? A low-level language would possibly require fewer instructions by the processor.