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
What are local static variables?
How can I discover how many arguments a function was actually called with?
Are there namespaces in c?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
Is c language still used?
Explain union.
What is the equivalent code of the following statement in WHILE LOOP format?
What is binary tree in c?
How do you define a function?
Subtract Two Number Without Using Subtraction Operator
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
Which is best linux os?
What is sizeof c?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above