My exact question is that there is any provision in c
and c++
to assign a value explicitly to particular address for example suppose I want to store 20
at 0x1846010
address in memory and I also want to access a value using this same address (0x1846010
).
Might be its easy but I am really confused how to do this if we can.
Anyone can explain is that possible, if yes then how (with suitable example) and if not then why?
Thanks in advance.