Macro

In general, macros are used like shortcuts. Like a macro key.

Programming

In a programming context (C++), the macro means that certain strings in the code will be changed before the compilation.

In C++, macros are defined using the #define keyword.

Ex: