what is the difference between NULL & NUL keywords in C?
Answer Posted / abhijit
NULL is a macro defined in <stddef.h> for the null pointer.
<br>NUL is the name of the first character in the ASCII
character set. It corresponds to a zero value. There?s no
<br>standard macro NUL in C, but some people like to define
it. <br>The digit 0 corresponds to a value of 80, decimal.
Don?t confuse the digit 0 with the value of ?? (NUL)!
<br>NULL can be defined as ((void*)0), NUL as ??. <br>
? NewInterviewQuestions.com
| Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
What does nil mean in c?
Are bit fields portable?
Can we declare variable anywhere in c?
How to compare array with pointer in c?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What is uint8 in c?
Where register variables are stored in c?
How do you construct an increment statement or decrement statement in C?
What is %lu in c?
What does calloc stand for?
What is wrong with this program statement?
What is nested structure with example?
What is malloc return c?
Can you please explain the difference between syntax vs logical error?
Explain 'far' and 'near' pointers in c.