pointers in c language...we can subtract two pointers then why cant add them?give logical justification!
Why cant we add two pointers???
above answer +
adding pointers don't give any useful information
consider this:
_ip is pointer to _i
_jp is pointer to _j
the where does (_ip+_jp) point to? nowhere
Reply:adding can result outofbound addresses
Reply:You can, but it has no meaning.
I live 226, bakers' street. That is my address.
He lives 10, downing street. That is his pointer.
Where is 22610, bakerdowning street????
kudzu
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment