P
Pallav singh
It expressedly says that there might not be one (in a
parenthese).
I've used implementations where a pointer was bigger than a
ptrdiff_t. (For that matter, I've used implementations where
there wasn't any integral type as large as a pointer. Now that
long long exists, and requires at least 64 bits, I imagine that
the case will be rare.)
The next version of the standard will include intptr_t and
uintptr_t, in <stdint.h> (or <cstdint>, if you prefer). But the
type is still "optional", and will only be present if such a
type exists.
--
James Kanze (GABI Software) email:[email protected]
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
int * ptr = 0;
cout << ptr++;
cout << *ptr++;
whats will be output ?
Thanks
Pallav Singh