ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
what is the difference between NULL & NUL keywords in C?
 Question Submitted By :: Uttama
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between NULL & NUL keywords in C?
Answer
# 1
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 ?    16 Yes 5 No
Abhijit
 
  Re: what is the difference between NULL & NUL keywords in C?
Answer
# 2
Neither NULL nor NUL is a keyword in C.
[International Standard ISO/IEC 9899:1999, Programming
Languages -- C, Section 6.4.1 Keywords]

That said, Abhijit did a good job explaining them.
 
Is This Answer Correct ?    5 Yes 9 No
Bryan Olson
 
 
 
  Re: what is the difference between NULL & NUL keywords in C?
Answer
# 3
NULL is a macro defined in 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 ''.
 
Is This Answer Correct ?    17 Yes 3 No
Shriku322
[IFlex]
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
C,c++, Java is all are structural oriented or procedure oriented language..?  6
Input is "Jack and jill went up a hill" To print output is 1-letter word(s)-1 2-letter words-1 3-letter words-1 4-letter words-4 Mind-Tree1
could u able to tell about suresoft technical session  1
Why doesn't C have nested functions?  2
what is difference between ++(*p) and (*p)++ Accenture16
input may any number except 1,output will always 1.. conditions only one variable should be declare,don't use operators,expressions,array,structure IBM4
What is the meaning When we write "#include" what is # and what does include does there??? HCL20
why TCS selected more student in the software field from all institution. TCS5
what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question  6
Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.  1
compare array with pointer?  1
write a program for 7*8 = 56 ? without using * multiply operator ? output = 56 Xavient5
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com