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 d'n in c?
What is cohesion in c?
What are 3 types of structures?
Is stack a keyword in c?
What is a pointer and how it is initialized?
What is maximum size of array in c?
What is the difference between arrays and pointers?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is page thrashing?
Why dont c comments nest?
What is hashing in c?
How do c compilers work?
What is the need of structure in c?
What math functions are available for integers? For floating point?
What is getch c?