Hello, i would kindly like to know what's the differences in between assigning a const to a variable or static const. Also which one is more sufficient.
Especially with in a class, why not just use const, and initialise the members with in the constructor?
i know const variable are compiled into hard coded values in the machine code and that static is stored on the .. stack or something. Anyway i know how it works in programmes.
Especially with in a class, why not just use const, and initialise the members with in the constructor?
i know const variable are compiled into hard coded values in the machine code and that static is stored on the .. stack or something. Anyway i know how it works in programmes.
Comment