What are Macros?

Whenever the name is used, it is replaced by the contents of the macro. ... Object-like macros resemble data objects when used, function-like macros resemble function calls. You may define any valid identifier as a macro, even if it is a C keyword. The preprocessor does not know anything about keywords.
 
It is a name given to the block of C statements as a pre-processor directive. And it is defined with the Pre-processor directive, #define.
 
n 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.
 
In computers, a macro (for "large"; the opposite of "micro") is any programming or user interface that, when used, expands into something larger. The original use for "macro" or "macro definition" was in computer assembler language before higher-level, easier-to-code languages became more common.
 
Back
Top