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 the diamond problem in inheritance?
Why do we use oop?
is there any choice in opting subjects like 4 out of 7
What is polymorphism and why is it important?
What is difference between abstraction and encapsulation?
What is pointer in oop?
What are the 3 principles of oop?
class type to basic type conversion
What are the 3 pillars of oop?
What is coupling in oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is inheritance in oop?
What is overriding in oops?
What is abstraction in oop?
Write a program to reverse a string using recursive function?