InterviewSolution
| 1. |
Difference Between Null And Nul? |
|
Answer» NULL is a macro DEFINED in for the null pointer. NUL is the name of the first CHARACTER in the ASCII character set. It corresponds to a ZERO value. There’s no standard macro NUL in C, but some PEOPLE like to define it. The digit 0 corresponds to a value of 80, decimal. Don’t confuse the digit 0 with the value of ‘’ (NUL)! NULL can be defined as ((void*)0), NUL as ‘ ’. NULL is a macro defined in for the null pointer. NUL is the name of the first character in the ASCII character set. It corresponds to a zero value. There’s no standard macro NUL in C, but some people like to define it. The digit 0 corresponds to a value of 80, decimal. Don’t confuse the digit 0 with the value of ‘’ (NUL)! NULL can be defined as ((void*)0), NUL as ‘ ’. |
|