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


Please Help Members By Posting Answers For Below Questions

Do the parentheses after the type name make a difference with new?

655


Can I make ios apps with c++?

562


Which bit wise operator is suitable for putting on a particular bit in a number?

725


Can I learn c++ without knowing c?

595


Who invented turbo c++?

608






Why do we need function?

604


What's the order in which the local objects are destructed?

842


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

614


What is #include math h in c++?

575


Do you know about latest advancements in C++ ?

662


What are the advantage of using register variables?

643


Are there any special rules about inlining?

587


Does c++ have a hash table?

548


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?

671


What is the use of turbo c++?

554