what is the main difference between c and c++?
Answer Posted / alok singh,pit
c is a topdown approach while c++ is bottom up APPROACH. C++ support operator overloading but c doesn't support
operator overloading.
In C++, you are free to leave off the statement 'return
0;' at the end of main; it will be provided automatically
but in C, you must manually add it
Actually c is a procedural programming language which
cann't face the real world problem. It has some drawback
like a global data is shared by all function and if in a
large program it is find out difficult that which function
uses which data.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is difference between abstraction and encapsulation?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
Which is better struts or spring?
How many human genes are polymorphic?
What is overriding vs overloading?
What is encapsulation process?
What are properties in oop?
What is oops with example?
What is the difference between procedural programming and oops?
What is protected in oop?
Why it is called runtime polymorphism?
Is react oop?
What is a null tree?
What are the 5 oop principles?