Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

int and pointer to int are two different types. Pointer-to-int being an option type does not make int an option type. So there are still option types and non-option types.

(Using the prevailing terminology. I'm not sure I'm comfortable with this use of the term "option type", but I'm rolling with it for now.)



Precisely. It's not the case that "any type can be an option type" as shock-value stated. Rather, in C, all pointer types are option types whether you want them to be or not, and all other types are not.




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

Search: