4 ms·
Strictly it's not an integral type as you point out, but for the purpose of introducing a beginner who might be afraid that there is "deep magic" involved, it c
by bluetomcat 6y ago
Strictly it's not an integral type as you point out, but for the purpose of introducing a beginner who might be afraid that there is "deep magic" involved, it can be a helpful comparison.
Subtracting two pointers yields ptrdiff_t which is not a pointer type in itself.
- shric 6y agoPretending it's an integral type leads to all sorts of conceptual mistakes, imho. It has almost no comparable semantics to integers.