electroRF
Member
Hi,
I learned about static and const keywords.
I actually knew them before but got into it more deeply.
I have 2 questions please:
1. when would you use static keyword? say for local variable and / or for global variable?
2. when would you use const? (I can't think of a situation where I'd rather use const rather than #define).
Thank you very much.
I learned about static and const keywords.
I actually knew them before but got into it more deeply.
I have 2 questions please:
1. when would you use static keyword? say for local variable and / or for global variable?
2. when would you use const? (I can't think of a situation where I'd rather use const rather than #define).
Thank you very much.
Last edited: