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
write a C++ program for booking using constructor and destructor.
Why do we use inheritance?
Can abstract class have normal methods?
What are objects in oop?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is persistence in oop?
Which is not an object oriented programming language?
What is polymorphism and why is it important?
Why do while loop is used?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is encapsulation and abstraction? How are they implemented in C++?
what is difference between class template and template class?
is there any choice in opting subjects like 4 out of 7
What is data binding in oops?
Write a program to reverse a string using recursive function?