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 are linker error?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Explain the array representation of a binary tree in C.
Why main is used in c?
Is return a keyword in c?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Can you please explain the difference between strcpy() and memcpy() function?
What is C language ?
What does c in a circle mean?
Explain the use of #pragma exit?
How do you view the path?
What is typedf?
What is default value of global variable in c?
What is the difference between scanf and fscanf?
string reverse using recursion