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
Should the member functions which are made public in the base class be hidden?
What are the important differences between c++ and java?
How to declare an array of pointers to integer?
Can we use this pointer in a class specific, operator-overloading function for new operator?
How do you define/declare constants in c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Explain the volatile and mutable keywords.
Define basic type of variable used for a different condition in C++?
What does new in c++ do?
Difference between an inspector and a mutator
What is the use of "new" operator?
What does count ++ do in c++?
Do vectors start at 0 c++?
Describe exception handling concept with an example?
Why pointer is used in c++?