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 difference between pop and oop?

0 Answers  


What are the benefits of oop?

0 Answers  


how to swap to variables without using thrid variable in java?

5 Answers  


What is abstraction and encapsulation?

0 Answers  


write a c++ program to find maximum of two numbers using inline functions.

3 Answers   IBM,






What is virtual constructors/destructors?

4 Answers   IBS,


Out of 4 concepts, which 3 C++ Follow?

1 Answers   TCS,


what is an instance of a class

5 Answers  


Describe the difference between a Thread and a Process?

11 Answers   Siebel Systems,


Why do we use oop?

0 Answers  


Is react oop?

0 Answers  


Write a program to reverse a string using recursive function?

0 Answers   TCS,


Categories