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

int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

743


What is data structure in c programming?

572


List a few unconditional control statement in c.

557


Write a code to remove duplicates in a string.

623


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

704






How do you determine the length of a string value that was stored in a variable?

647


cavium networks written test pattern ..

3592


What is a nested formula?

601


what is the significance of static storage class specifier?

1659


When is the “void” keyword used in a function?

828


What is the difference between fread and fwrite function?

636


what is the role you expect in software industry?

1651


What is ponter?

768


Explain built-in function?

589


When can a far pointer be used?

586