|
|
|
|
|
by poincaredisk
548 days ago
|
|
I disagree with your premise. C was designed to be a high level (for its time) language, abstracted from actual hardware >It's pretty much a tiny wrapper around assembler Assebler has zero problem with adding "null + 4" or computing "null-null". C does, because it's not actually a tiny wrapper. |
|
NULL doesn't exist in assembler, and in C, NULL is only a defined as a macro. It's not something built-in.
C doesn't have any problems adding 4 to NULL nor subtracting NULL from NULL.