What's the difference between the inline specifier and the extern keyword when applied to a variable?
extern says that the variable definition resides in a translation unit elsewhere. 
inline for global/namespace scope variable means that the definition is provided at the spot. Without inline or const there will be multiple symbol definition linker error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With