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
Can you mix old-style and new-style function syntax?
What is the difference between new and malloc functions?
In C programming, what command or code can be used to determine if a number of odd or even?
What is meant by 'bit masking'?
Why is struct padding needed?
What is %lu in c?
Is c is a high level language?
What is main () in c?
Are bit fields portable?
What the different types of arrays in c?
What is array within structure?
Differentiate between a structure and a union.
Is there any possibility to create customized header file with c programming language?
What is function what are the types of function?
What language is c written?