Raj Sharma wrote:
Hi Guys,
It looks silly but a doubt,
When we declare a variable as a Const where does it stores in Computer?
Depends.
If you never take the address of that const, then chances are high the
the variable never turns up in the final executable. The compiler simply
stores the variables name with the value in a compiler internal table and
whenever that const variable is used, the compiler silently replaces the
variable with the known value.
--
Karl Heinz Buchegger
kb******@gascad.at