|
Aspect |
C Language |
C++ Language |
|
Overview |
C is a procedural,
general-purpose programming language developed in the early 1970s. It is
known for system-level programming. |
C++ is an object-oriented
language built as an extension of C in the 1980s, supporting both procedural
and object-oriented programming. |
|
Programming Paradigm |
Procedural
programming – focuses on functions, sequence, and structured code flow. |
Multi-paradigm
– supports procedural, object-oriented, and generic programming. |
|
Object-Oriented Support |
Does not
support object-oriented programming concepts like classes and objects. |
Fully
supports object-oriented features such as classes, objects, inheritance,
encapsulation, and polymorphism. |
|
Data Security |
Less secure –
data can be accessed from any function, no concept of encapsulation. |
More secure – uses classes and access specifiers (public, private, protected) for data hiding. |
