Reply to thread

Everyone has their own opinion on the matter, but I am of the school that one should learn C prior to learning C++.  While C++ is a very powerful language, its core style really stems from C.  Even now (for academic purposes), when I mostly use C++  (i.e. classes), I find it convenient to resort to old 'C-style' syntax in certain situations.  Coding purely in C++, without knowing C and understanding Assembly in my opinion, can cause one to lose sight of the low-level nuances (i.e. memory/stack management) and not be able to code/debug securely and efficiently.


But to answer your question, there really isn't anything that is possible to do in C that is impossible to do in C++ and vice-versa.  It is really a matter of coding preference.  While industry probably  prefers pure C++ for readability, portability, and its many great benefits, someone with my background (security) will generally code with whatever 'gets the job done' in the easiest way possible -- even if that means my code is nonsensical to others.


Back
Top Bottom