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


Please Help Members By Posting Answers For Below Questions

What is property in oops?

565


What is abstract class in oops?

596


Can we create object of abstract class?

575


Which type does string inherit from?

611


Why we use classes in oop?

575






design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6143


program for insertion ,deletion,sorting in double link list

2276


write knight tour problem which is present in datastructure

2160


What are functions in oop?

582


What is polymorphism explain?

683


what is the sylabus for priliminaries?

1683


What is the difference between abstraction and polymorphism?

613


Get me an image implementation program.

1557


How do you explain polymorphism?

586


What is class and object in oops?

607