what is the main difference between c and c++?
Answer Posted / mohit bhushan singhal
1: In C++, we use <iostream.h> while in C, we use <stdio.h>.
2: C++ is an object oriented programming language and C is
a procedure programming language.
3: in C++, we do not use Algo while in C, we use algo to
make a good program.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
#include
• What are the desirable attributes for memory managment?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why do we need oop?
What is encapsulation and abstraction? How are they implemented in C++?
What is encapsulation example?
What is oops concept with example?
Why is polymorphism needed?
Give two or more real cenario of virtual function and vertual object
any one please tell me the purpose of operator overloading
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is static in oop?
Why is encapsulation used?
What are the 4 main oop principles?
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.