difference between c and c++?
Answer Posted / pragati paliwal
1.c is procedure oriented lang. while c++ is object oriented lang.
2. in c data security is less because all function shares global data,while in c++ data security is most because of binding of data with function in a single unit called class.This feature of c++ is called encapsulation.
3.c does not deal with real world problems properly.eg. maintaining a database. while c++ deals with real world problems.
4.in c if we need to change the data structure then we have to change the coding of all the functions which are using that data,while in c++ if we need to change the data structure change only data structure of those functions which are binded with that data.
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What are signs of manipulation?
Why is c++ still best?
How is computer programming useful in real life?
Do class declarations end with a semicolon?
What is the full form of c++?
What are inline functions? What is the syntax for defining an inline function?
What are activex and ole?
What is the advantage of c++ over c?
Is c++ fully object oriented?
What does flush do?
What are the extraction and insertion operators in c++? Explain with examples.
Explain stack & heap objects?
When are exception objects created?
Can we specify variable field width in a scanf() format string? If possible how?
Can we sort map in c++?