c vs c++

c vs c++:

C: - Procedural programming language - Developed by Dennis Ritchie in 1972 - Emphasizes on functions and procedures - Supports structured programming - Does not support classes and objects - Does not have exception handling - No function overloading - No references, only pointers - No namespaces - No standard template library (STL)

C++: - Object-oriented programming language - Developed by Bjarne Stroustrup in 1983 - Supports classes and objects - Supports both procedural and object-oriented programming - Supports function overloading - Supports references as well as pointers - Supports namespaces - Has exception handling - Supports standard template library (STL)