Write a C program to illustrate macro function

0

This program uses the preprocessor directive #define to define a macro function called SQUARE. The macro function takes one argument, x, and replaces it with x*x whenever it is called. In the main function, the macro function is called with the argument num, which is set to 5. The output of the program is "Square of 5 is 25."

Post a Comment

0Comments
Post a Comment (0)