Can we write a+5=5 in c++.because i saw it in one of the leading guides in India,
Thanks in advance....................
1
Expert's answer
2013-02-06T08:02:57-0500
we definitely can not write this in such way. a+5=5 means that a+5 must have meaning of 5, but we can not change the meaning of a+5 in total. Maybe you mean *(a+5) = 5 - this means that if a was a pointer to array, 5th element of array would have meaning of 5. That's it!
Comments
You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!
Thank you very much sir.
Leave a comment