what is the main difference between c and c++?
Answer Posted / vivek goyanr
In C memory allocation is done with malloc statement whereas
in C++ it is done through new keyword.Also memory is
deallocated in C using free statement while in C++
deallocation takes place through delete.
Is This Answer Correct ? | 452 Yes | 108 No |
Post New Answer View All Answers
What is encapsulation and abstraction? How are they implemented in C++?
What is constructor overloading in oop?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is encapsulation example?
What is solid in oops?
Give two or more real cenario of virtual function and vertual object
What is abstraction example?
What is an example of genetic polymorphism?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is the main purpose of inheritance law?
Why do we use class in oops?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is the renewal class?
What is the difference between a mixin and inheritance?
What is polymorphism used for?