Can anyone Explain what exactly is the use of the Macro Expansion In C or C++ Program.
# define UPPER 3
main()
{
int i;
for(i=0;i<UPPER;++i)
cout<<i;
}
The same thing could be achieved using constants and making there scope global, then why do we use it, are they used just to increase the readability of the program?