Professional Documents
Culture Documents
C++
C does no support polymorphism,
supports polymorphism, encapsulatio
encapsulation, and inheritance which
n, and inheritance because it is an
means that C does not support
object oriented programming
object oriented programming.
language.
Virtual and friend functions are not Virtual and friend functions are
supported by C. supported by C++.
C
C++ provides new operator for
provides malloc() and calloc() functio
memory allocation and delete
ns for dynamic memory allocation,
operator for memory de-allocation.
and free() for memory de-allocation.
scanf() and printf() functions are cin and cout are used for input/output
used for input/output in C. in C++.
Named initializers may appear out of Named initializers must match the
order data layout of the struct