InterviewSolution
Saved Bookmarks
| 1. |
Is Null Always Defined As 0? |
|
Answer» NULL is DEFINED as EITHER 0 or (void*)0. These values are almost identical; either a literal zero or a void POINTER is converted automatically to any kind of pointer, as necessary, whenever a pointer is NEEDED (ALTHOUGH the compiler can’t always tell when a pointer is needed). NULL is defined as either 0 or (void*)0. These values are almost identical; either a literal zero or a void pointer is converted automatically to any kind of pointer, as necessary, whenever a pointer is needed (although the compiler can’t always tell when a pointer is needed). |
|