Answer to Question #23810 in C++ for TOM JOSE

Question #23810
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!

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
06.02.13, 18:40

You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!

Tom Jose
06.02.13, 18:30

Thank you very much sir.

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS