KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In C++, is the address of a reference to a dereferenced pointer guaranteed to be the same as the address of the pointer? Or, written in code, is the following assertion guaranteed to always hold true? SomeType *ptr = someAddress; SomeType &ref = *ptr; assert(&ref == ptr);
Tags (comma-separated)
Save Edits
Cancel