Define macro? Give the general structure of macro with an example.
Answers
Answered by
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
English,
5 months ago
Chemistry,
10 months ago
English,
10 months ago
Biology,
11 months ago
Accountancy,
11 months ago