What is a macro? And how is a macro same as a template?

Answers were Sorted based on User's Feedback



What is a macro? And how is a macro same as a template?..

Answer / jigar

In Microsoft Word and other programs, a macro is a saved
sequence of command s or keyboard strokes that can be stored
and then recalled with a single command or keyboard stroke.

Is This Answer Correct ?    7 Yes 2 No

What is a macro? And how is a macro same as a template?..

Answer / poonam

Would you please elaborate your answer... This question was
posted by me. I want to know the answer in c++ point of veiw.

Is This Answer Correct ?    5 Yes 1 No

What is a macro? And how is a macro same as a template?..

Answer / 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

What is a macro? And how is a macro same as a template?..

Answer / vijay pratap

In C and C++,Macro is a user defined funtion.Which you can
make the function according to you.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is polymorphism in oops with example?

0 Answers  


What is coupling in oops?

0 Answers  


What is debug class?what is trace class? What differences are between them? With examples.

0 Answers  


What is the types of inheritance?

0 Answers  


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

0 Answers  






what is function overloading..?

4 Answers  


what is the difference between ERROR and EXCEPTION?

14 Answers   NIIT, nvidia,


What is polymorphism what is it for and how is it used?

0 Answers  


what is object slicing?

9 Answers   L&T, Wipro,


2. Give the different notations for the class.\

0 Answers  


Why do we use oops?

0 Answers  


Difference between realloc() and free?

9 Answers   HP,


Categories