what is the main difference between c and c++?
Answer Posted / amit kumar
C C++
1. Procedural Programing Object Oriented
2. Donot Support Class & Object Supports
3. Low level language High level language
4. Data Not secured Data Secured
5. Allocation By Malloc New Operator
6. Not provide default argument Provide
7. Main funtion Can't return value Can Return
8. Has no Operator overloading Has Operator overloading
9. Top-Down Approach Bottom-Up
10.Imporance on Algo & Function On Class & Object
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Why do we use class?
Why do we use encapsulation in oops?
What makes a language oop?
Why do pointers exist?
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
How is class defined?
What is the full form of oops?
What is the main purpose of inheritance law?
What is abstraction and encapsulation?
Why do we need oop?
What is advantage of inheritance?
What is ambiguity in inheritance?
is there any choice in opting subjects like 4 out of 7
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
c++ program to swap the objects of two different classes