Computer Science, asked by jayanthiramesh1010, 8 months ago

Write the syntax to define a macro as a function.​

Answers

Answered by Anonymous
33

Explanation:

To define a macro that uses arguments, you insert parameters between the pair of parentheses in the macro definition that make the macro function-like. ... To invoke a macro that takes arguments, you write the name of the macro followed by a list of actual arguments in parentheses, separated by commas.

Answered by MizRose
36

Explanation:

Macros can also accept parameters and return values. Macros that do so are called macro functions. To create a macro function, simply define a macro with a parameter that has whatever name you like, such as my_val. For example, one macro defined in the standard libraries is abs, which returns the absolute value of its parameter. 

please mark as the brainliest

Similar questions