J
John Goche
Hello,
I would like to ask what the difference is between
"static const int" versus "const int". I mean of course
the former goes in the static data segment of code
whereas the latter is pushed on the stack, but since
a const does not change it might as well be declared
static, but to what advantage.
What I am asking is how to decide whether to use
"static const int" versus "const int".
Thanks,
John Goche
I would like to ask what the difference is between
"static const int" versus "const int". I mean of course
the former goes in the static data segment of code
whereas the latter is pushed on the stack, but since
a const does not change it might as well be declared
static, but to what advantage.
What I am asking is how to decide whether to use
"static const int" versus "const int".
Thanks,
John Goche