What is a macro? And how is a macro same as a template?
Answer Posted / alka pant
In C and C++, a Macro is a piece of text that is expanded by
the preprocessor part of the compiler.
This is used in to expand text before compiling.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the importance of oop?
Which language is pure oop?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
i got a backdoor offer in process global,Bangalore..Can i work with it?
What are the three parts of a simple empty class?
class type to basic type conversion
Which is not an object oriented programming language?
What is property in oops?
Is abstract thinking intelligence?
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 inheritance write a program to show use of inheritance?
Can we define a class within the interface?
Which is better struts or spring?
What is persistence in oop?
How do you define social class?