Why use #define instead of a variable

What is the point of #define in C++? I've only seen examples where it's used in place of a "magic number" but I don't see the point in just giving that value to a variable instead.

51
задан Adarsh Rao 28 March 2018 в 02:30
поделиться