adspace


Give 10 points of differences between C & C++.

Answer Posted / Neelabh Shukla

1. C++ supports object-oriented programming (OOP) while C does not.
2. C++ has exceptions and operator overloading, while C does not.
3. C++ has namespaces, whereas C does not.
4. C++ supports templates, whereas C does not.
5. C++ has a standard library with string manipulation, I/O functions, and more; C's standard library is smaller.
6. C++ provides an automatic memory management using new and delete, while C relies on manual memory allocation.
7. C++ allows function overloading, whereas C does not.
8. C++ supports multiple inheritance, whereas C supports single inheritance only.
9. C++ has a built-in support for complex numbers; C doesn't have built-in support but can use libraries to achieve it.n10. C++ allows inline functions, whereas C does not.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1172


Can union be self referenced?

1279


What is the latest version on c++?

1217


What character terminates all character array strings a) b) . c) END

1403


daily Routine of father

1492