Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
addresses and integers
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Douglas A. Gwyn, post: 2385360"] Essentially, yes (6.5.9p6). Note, however, that valid pointer values can be formed only in certain ways, so for example int i, j, *pi = &i, *pj = &j - 1; pi == pj; is not allowed in a s.c. program. The opportunity for accidental equality is thus pretty much limited to int i, j, *pi = &i + 1, *pj = &j; pi == pj; Other, more useful, cases of equality will be for two pointers into (or just past the end of) an aggregate object. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
addresses and integers
Top