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
What is abstraction and encapsulation?
Can private class be inherited?
What are oops methods?
What is the significance of classes in oop?
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?
What is the benefit of oop?
What is destructor oops?
Why do we need polymorphism in c#?
What are benefits of oop?
What is the example of polymorphism?
Why do we use polymorphism?
What does and I oop mean in text?
What is overloading in oop?
What is polymorphism and types?
write a program to find 2^n+1 ?