what is the main difference between c and c++?
Answer Posted / aparna
C is a procedural language,but C++ is a object oriented
language.C does not support the operator overloading,but C++
support the operator overloading.In C memory allocation is
done with "malloc" statement.In C++ memory allocation is
done with "new" statement.In c memory deallocation is done
with "free" statement.In C++ memory deallocation is done
with "delete" statement.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Where is pseudocode used?
What is difference between oop and pop?
c++ program to swap the objects of two different classes
why reinterpret cast is considered dangerous?
What is overloading and its types?
What is overloading in oops?
What does sksksk mean in text slang?
what is difference between class template and template class?
What does and I oop mean?
Why interface is used?
Can we create object of interface?
What is basic concept of oop?
What type of loop is a for loop?
What is the advantage of oop over procedural language?
Why do we use encapsulation in oops?