When we already have C language then why C++?

How C++ eliminate the limitation felt while developing in C language?

  • Adesh
  • 15 Jul
  • 4808 Views
  • 6 Answers
Your Answer

C++ is object oriented whereas C is not
 C is not a secure programming language by any stretch of the imagination; no bounds checking on arrays leads to lots of exploitable behavior (be it through the now-dead gets function, or through scanf with the %s and %[ conversion specifiers). C++ at least gives you containers that throw exceptions if you try to access outside their currently defined range; all C gives you is (if you're lucky) a segmentation violation.

0
c plus plus programming
Practice Mock Test
c plus plus programming