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 difference between oop and pop?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is encapsulation c#?
State what is encapsulation and friend function?
What is object-oriented programming? Webopedia definition
What is abstraction encapsulation?
What is new keyword in oops?
What is an interface in oop?
Why do we need polymorphism in c#?
What polymorphism means?
Give two or more real cenario of virtual function and vertual object
Plese get me a perfect C++ program for railway/airway reservation with all details.
How Do you Code Composition and Aggregation in C++ ?
How to use CMutex, CSemaphore in VC++ MFC
Why do while loop is used?