what is the main difference between c and c++?

Answer Posted / anhr computer education

In 'C' header file is optional but in C++ header file is
compulsory and cannot be ignored.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can bst contain duplicates?

682


What is overriding in oop?

556


Why multiple inheritance is not allowed?

594


What is constructor overloading in oop?

614


What is inheritance write a program to show use of inheritance?

621






to find out the minimum of two integer number of two different classes using friend function

1645


What is class encapsulation?

618


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.

647


What is a class in oop?

614


What is polymorphism and why is it important?

566


What is solid in oops?

621


How to use CMutex, CSemaphore in VC++ MFC

4340


Why do we use class?

643


What is a superclass in oop?

677


Explain virtual inheritance?

690