They are not variables defined in the header file. they are macros.
Macros: Macros are a piece of code in a program that is given some name. Whenever this name is encountered by the compiler the compiler replaces the name with the actual piece of code. The ‘#define’
directive is used to define a macro. Lets understand the macro definition with the help of a program:
#include <iostream>
// macro definition
#define size 5
int main()
{
for (int i = 0; i < size; i++) {
std::cout << i << "\n";
}
return 0;
}
whenever you use size
compiler replaces it with 5
#define x 0x1