What is preferable to use between:
#define PI 3.14159265
and
static const float PI=3.14159265
I know that define is used at compilation time and static const is used at execution time. Is just that I don't know which one to use and why?
What is preferable to use between:
#define PI 3.14159265
and
static const float PI=3.14159265
I know that define is used at compilation time and static const is used at execution time. Is just that I don't know which one to use and why?