33 ms·
I've always written it before the variable, as int *x. A pointer to something isn't really a new type, is it?
by rudiger 14y ago
I've always written it before the variable, as int *x. A pointer to something isn't really a new type, is it?
- charliesome 14y agoA pointer to T is definitely a different type to T itself: http://codepad.org/ztUjn7g8 http://codepad.org/ztUjn7g8
- rudiger 14y agoWhat I mean to say is, if T is a type, then a pointer to T is certainly different from T, but a "pointer to T" isn't a new type. The C type system includes the single type "pointer."