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
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is data binding in oops?
What is oops and its features?
#include
What is the important feature of inheritance?
What are the benefits of oop?
How do you explain polymorphism?
What is the use of oops?
What is class and object with example?
What are main features of oop?
What is multilevel inheritance?
How Do you Code Composition and Aggregation in C++ ?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Explain virtual inheritance?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?