what is difference between null and nul in c language

Answers were Sorted based on User's Feedback



what is difference between null and nul in c language..

Answer / xsoft

null this is a key word in C language but the nul this
keyword used in dos Programming as you can you use it in C
programming with the function system("dir ./a>nul");
then when can consider this nul as an output.

Is This Answer Correct ?    1 Yes 1 No

what is difference between null and nul in c language..

Answer / amar singh rajput

NULL is an pointer with value zero (0) ,and NUL is an character with integer value 0 (zero) .

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the meaning of ?

0 Answers  


what is the difference between call by value and call by reference?

5 Answers   Genpact, Global Logic, Infosys,


Explain what does a function declared as pascal do differently?

0 Answers  


main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above

6 Answers  


If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?

6 Answers   Hughes,






Explain what is a stream?

0 Answers  


Explain how can you determine the size of an allocated portion of memory?

0 Answers  


int main() { int i=1; switch(i) { case '1': printf("hello"); break; case 1: printf("Hi"); break; case 49: printf("Good Morning"); break; } return 0; }

3 Answers  


What is an auto keyword in c?

0 Answers  


Why is it important to memset a variable, immediately after allocating memory to it ?

0 Answers  


write a c program for swapping two strings using pointer

0 Answers  


What is the difference between variable declaration and variable definition in c?

0 Answers  


Categories