Computer Science, asked by Naimilshah, 8 months ago

Write a macro defination for adding two numbers that uses positional and keyword parameter

Answers

Answered by hiratayyab17
4

Answer:

Positional parameters are symbolic parameters that must be specified in a specific order every time the macro is called. The parameter will be replaced within the macro body by the value specified when the macro is called.

Answered by AskewTronics
4

Following are the macros definition for the above question :

Explanation:

#define add(positional,keyword) positional+keyword //Macros definition which use the positional and keyword variables.

  • When the user wants to use the above micro on the program, then he needs to write the "add(value_1,value_2)", in which value_1 and value_2 are the value that needs to be added.
  • Then the add gives the result which is the addition of value_1 and value_2.

Learn More :

  • C-Program : https://brainly.in/question/12809215
Similar questions