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


Please Help Members By Posting Answers For Below Questions

The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

997


What is New modifiers?

870


What is int main () in c?

837


Which is better oop or procedural?

799


What is maximum size of array in c?

763


What is signed and unsigned?

807


Can we use visual studio for c?

750


What are runtime error?

825


Explain what is wrong with this program statement? Void = 10;

972


What are categories used for in c?

787


How many types of errors are there in c language? Explain

740


Explain what happens if you free a pointer twice?

783


Does c have circular shift operators?

942


What is an arrays?

817


What is the default value of local and global variables in c?

748