Hacker News new | past | comments | ask | show | jobs | submit login

I've always written it before the variable, as int *x. A pointer to something isn't really a new type, is it?



A pointer to T is definitely a different type to T itself: http://codepad.org/ztUjn7g8


What 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."




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: