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
Do the parentheses after the type name make a difference with new?
Can I make ios apps with c++?
Which bit wise operator is suitable for putting on a particular bit in a number?
Can I learn c++ without knowing c?
Who invented turbo c++?
Why do we need function?
What's the order in which the local objects are destructed?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is #include math h in c++?
Do you know about latest advancements in C++ ?
What are the advantage of using register variables?
Are there any special rules about inlining?
Does c++ have a hash table?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
What is the use of turbo c++?