What is the difference between a macro and a const in C++?
Macros and constants are not remotely the same thing, each is sometimes appropriate for the circumstances, and your answer only scratches at the surface of the difference. Also, C++ has two different kinds of constants. A constant defined with the const qualifier is best thought of as an unmodifiable variable. It has all the properties … Read more