Make a variable const in cpp then give its address to a pointer but dereferencing not mutate the variable why?

后端 未结 0 1373
栀梦
栀梦 2021-01-31 11:56

making a variable const in cpp then give its address to a pointer and change its value by dereferecing but I still gets the value that I stored initially.

code snippet<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题