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
How const int *ourpointer differs from int const *ourpointer?
What is the prototype of printf function?
What is low level language in simple words?
Should you pass exceptions by value or by reference?
Why c++ is created?
Explain the difference between using macro and inline functions?
What does override mean in c++?
Which is better turbo c++ or dev c++?
What is long in c++?
Difference between inline functions and macros?
How can virtual functions in c++ be implemented?
Explain the use of vtable.
What gives the current position of the put pointer?
What is the difference between method overloading and method overriding in c++?
Is swift better than c++?