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 getch() function?
What does s c mean in text?
What is mean by data types in c?
What the different types of arrays in c?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Write a program which returns the first non repetitive character in the string?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Can we initialize extern variable in c?
Is int a keyword in c?
How do you define structure?
Is Exception handling possible in c language?
Who invented bcpl language?
Explain how can I open a file so that other programs can update it at the same time?
Explain the process of converting a Tree into a Binary Tree.
Is fortran faster than c?