ALLInterview.com :: Home Page KalAajKal.com
 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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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 ?    2 Yes 3 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 ?    2 Yes 4 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 ?    5 Yes 2 No
Shriku322
[IFlex]
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
how can i make a program with this kind of output.. Enter a number: 5 0 01 012 0123 01234 012345 01234 0123 012 01 0 Wipro3
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); } ME3
How to avoid structure padding in C? Tech-Mahindra4
Why doesn't C have nested functions?  2
What is a far pointer?What is the utility?  2
program to find middle element of linklist? Huawei1
I have an array of 100 elements, each of which is a random integer. I want to know which of the elements: a) are multiples of 2 b) are multiples of 2 AND 5 c) have a remainder of 3 when divided by 7  1
How many types of linked lists what are they? How many types of data structures? BSNL5
What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack  5
C program to find frequency of each character in a text file?  3
palindrome for strings and numbers----Can anybody do the prog? TCS6
difference between my-strcpy and strcpy ? Geometric-Software3
what is meant by the "equivalence of pointers and arrays" in C? Satyam3
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green") Cadence4
How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)  4
What's the best way to declare and define global variables?  5
what is dangling pointer? LG-Soft1
write a program to insert an element at the specified position in the given array in c language IBM2
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); } Wipro1
logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............ Infosys2
 
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 © 2007  ALLInterview.com.  All Rights Reserved.

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