Macros
Macros are a powerful extension of #define statements. They are similar to functions in the sense that they use arguments.
We'll cover the following
You can use #define
statements in more advanced ways, which are sometimes called macros (a macro is typically used to define something that takes one or more arguments).
For example, you could define a macro to perform the square of a number like this:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy