The standard says that a pointer is a reference to an object of a referenced type T.
Also, pointers that reference different types the standard says that may not be "equivalent "...
After seeing some defect reports (e.g http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_051.html) and considering what the standard says i have the following question:
What value does a pointer store? Almost all books (and in universities) they say a pointer stores the address of an object. But if that is a case how can the above problems rise??
If you know post links to articles and tutorials only on this aspect of pointers.
Thanks in advance
Also, pointers that reference different types the standard says that may not be "equivalent "...
After seeing some defect reports (e.g http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_051.html) and considering what the standard says i have the following question:
What value does a pointer store? Almost all books (and in universities) they say a pointer stores the address of an object. But if that is a case how can the above problems rise??
If you know post links to articles and tutorials only on this aspect of pointers.
Thanks in advance
Comment