Show Navigation
Conversation
Notices
-
Fun fact: the C standard is actually useless without a copy of K&R.
-
I don't mean this in some abstract "you'll never learn from just the standard" I mean that if you want to implement C you need it. There are certain minor terms like *NULL POINTER* which the standard never defines and you're supposed to just be aware of its definition via K&R.
-
This is actually how I found out about it. I brought up that literal 0 is always equivalent to NULL in a pointer context, was then asked "what about architectures where 0 is a valid address?" Went to the C FAQ and it said that the standard says so without a reference. Found a draft of the C11 standard and it makes reference to "null pointers" without defining them. K&R page 102 has the actual definition