Just read the index to the book of K. Kenneth Reck. It says that the NUL byte is the one whose bits are all 0, written like this '\0' , and NULL has a value of 0, which refers to a pointer whose value is zero.
Both are integers and have the same meaning, so they can be used interchangeably.
and this code also:
char const *keyword[] = { "do", "for", "if", "register", "return", "switch", "while", NULL };
In this code, NULL allows search functions in a table to determine the end of a table. So, can we exchange NULL and NUL macros?
c ++ c
Ashish Rawat Mar 18 '13 at 14:32 2013-03-18 14:32
source share