Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What does nil mean in c?

1181


Are bit fields portable?

1107


Can we declare variable anywhere in c?

920


How to compare array with pointer in c?

1049


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1029


What is uint8 in c?

1054


Where register variables are stored in c?

908


How do you construct an increment statement or decrement statement in C?

1176


What is %lu in c?

1180


What does calloc stand for?

1086


What is wrong with this program statement?

987


What is nested structure with example?

1012


What is malloc return c?

975


Can you please explain the difference between syntax vs logical error?

1133


Explain 'far' and 'near' pointers in c.

1081