what is the main difference between c and c++?

Answer Posted / solaimuthu manikandan

1. C follows the procedural programming paradigm while C++
is a multi-paradigm language(procedural as well as object
oriented)

In case of C, importance is given to the steps or
procedure of the program while C++ focuses on the data
rather than the process.
Also, it is easier to implement/edit the code in case of
C++ for the same reason.


2. In case of C, the data is not secured while the data is
secured(hidden) in C++

This difference is due to specific OOP features like
Data Hiding which are not present in C.

3. C++ supports function overloading while C does not

4. We can use functions inside structures in C++ but not in

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction and encapsulation?

577


Can private class be inherited?

621


What are oops methods?

568


What is the significance of classes in oop?

590


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1585






What is the benefit of oop?

571


What is destructor oops?

625


Why do we need polymorphism in c#?

691


What are benefits of oop?

641


What is the example of polymorphism?

562


Why do we use polymorphism?

581


What does and I oop mean in text?

625


What is overloading in oop?

577


What is polymorphism and types?

604


write a program to find 2^n+1 ?

1555