Computer Science, asked by army4737, 11 months ago

Define macro? Give the general structure of macro with an example.

Answers

Answered by officialBE
4

Answer:

Explanation:

· In computer programming, macros are a tool that allows a developer to re-use code. For instance, in the C programming language, this is an example of a simple macro definition which incorporates arguments.

:- A macro is a segment of code which is replaced by the value of macro. Macro is defined by #define directive. There are two types of macros: Object-like Macros:-The object-like macros is a identifier which is replaced by the value. It is widely used to represent the constant value.For Example- #define mun 2.00.

-Alex

Similar questions