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

which is best institute to learn c,c++ in ameerpet hyderabad

1 Answers  


Why do we use oops?

0 Answers  


What is multilevel inheritance?

0 Answers  


Prepare me a program for the animation of train

0 Answers  


what is the new version of c++

1 Answers   Ignou, Pramata, Satyam,






what is mean by design pattern

4 Answers  


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


Why do we use polymorphism?

0 Answers  


write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.

4 Answers  


can inline function declare in private part of class?

1 Answers  


What causes polymorphism?

0 Answers  


What is constructor overloading in oop?

0 Answers  


Categories