Thursday, February 26, 2015

What is the difference between NULL and NUL?

Question:What is the difference between NULL and NUL??

Answer: </I>NULL is a macro defined in &lt;stddef.h&gt; 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 '�'. &nbsp;

Tags:Interview Questions, Languages, C,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement




Medical Billing Software

Hospital Management System Software

Hospital Management System (HMS) Software is developed for multispeciality hospitals, to cover a wide range of hospital administration and management processes with financial accounting, voucher entry, pharmacy, patients module etc features...

No comments:

Post a Comment