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
Business Studies,
6 months ago
Political Science,
6 months ago
Chemistry,
11 months ago
English,
11 months ago
Biology,
1 year ago
Accountancy,
1 year ago