+ 1
Difference between static and const
3 odpowiedzi
+ 2
Thanks @Hatsy!
💾
+ 2
const variables are typically stored in the .rdata section, which is read only access. Static variables are stored in .data section, and so their address remains the same in your process across all classes or functions. This is useful because you won't have to pass any references around, nor have to store them globally