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 the correct declaration of main?
Define Array of pointers.
How to declare pointer variables?
Tell us something about keyword 'auto'.
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
what is the function of pragma directive in c?
What is the size of structure in c?
What is register variable in c language?
What are loops in c?
What are the differences between new and malloc in C?
Explain what are the different data types in c?
What are the advantages of using macro in c language?
What are the 5 data types?
Why double pointer is used in c?
Explain the term printf() and scanf() used in c language?