P
Paradigm
Hi
Here is the scenario:
There is a pointer variable 'x'.
For what type of 'x' would the following show a write access on 'x'
std::cout<<*x<<'\n'; //showing write access on x [what's its type?]
I could not think of any possible situation apart from overloaded '*' operator having write operation inside the definition itself.
Hope my question is clear.
Thanks
Here is the scenario:
There is a pointer variable 'x'.
For what type of 'x' would the following show a write access on 'x'
std::cout<<*x<<'\n'; //showing write access on x [what's its type?]
I could not think of any possible situation apart from overloaded '*' operator having write operation inside the definition itself.
Hope my question is clear.
Thanks