what is the difference between NULL & NUL keywords in C?
Answer Posted / shriku322
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 ''.
| Is This Answer Correct ? | 19 Yes | 3 No |
Post New Answer View All Answers
What is a good data structure to use for storing lines of text?
Explain the ternary tree?
Where can I get an ansi-compatible lint?
What is infinite loop?
what type of questions arrive in interview over c programming?
Why we use conio h in c?
What is size of union in c?
What is NULL pointer?
What do you mean by a sequential access file?
Explain which function in c can be used to append a string to another string?
formula to convert 2500mmh2o into m3/hr
What is advantage of pointer in c?
What is difference between arrays and pointers?
What is the purpose of type declarations?
Which one would you prefer - a macro or a function?