Re: How can a value of a constant be varied through a pointer ?

2015-09-19 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 20 September 2015 at 00:09:52 UTC, RADHA GOGIA wrote: I went through these two links and found that this behaviour is undefined , but the only issue which I have is that in one sense we say that since local variables live on stack , hence they cannot be located on read only memory re

How can a value of a constant be varied through a pointer ?

2015-09-19 Thread RADHA GOGIA via Digitalmars-d-learn
I went through these two links and found that this behaviour is undefined , but the only issue which I have is that in one sense we say that since local variables live on stack , hence they cannot be located on read only memory region but if this is so then if I try to alter the value of the co