what is the difference between NULL('\0') and 0?

Answers were Sorted based on User's Feedback



what is the difference between NULL('\0') and 0?..

Answer / siddhant

Null is used to terminate strings. It is a character constant..
0 is an integer constant. Its ASCII code is 48.

Is This Answer Correct ?    0 Yes 0 No

what is the difference between NULL('\0') and 0?..

Answer / karen

If the question is asking what is the difference between
char x = '\0' and char x = 0, the answer is there is no
difference. This is why you can use memset or zeromemory to
flush out an empty character array.

Is This Answer Correct ?    3 Yes 5 No

what is the difference between NULL('\0') and 0?..

Answer / prasad

null set always knwn as zero

Is This Answer Correct ?    3 Yes 10 No

what is the difference between NULL('\0') and 0?..

Answer / dushyant

null means nill nothing is there. zero means something is there but we dont know....

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More C Interview Questions

Why do we need arrays in c?

0 Answers  


write a c program in such a way that if we enter the today date the output should be next day's date.

0 Answers  


How is pointer initialized in c?

0 Answers  


every function has return the value?

1 Answers  


What is difference between scanf and gets?

0 Answers  






Read two numbers from keyboard and find maximum of them?

1 Answers  


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

7 Answers   Accenture, Gridco, IBM, Kevin IT, TCS, Vimukti Technologies,


What is the auto keyword good for?

0 Answers  


write a c prog for removing duplicate character from an array and sorting remaining elements using a single array

1 Answers  


Write a program to know whether the input number is an armstrong number.

0 Answers   Wipro,


what is the difference between %d and %*d in c languaga?

7 Answers   TCS,


The __________ attribute is used to announce variables based on definitions of columns in a table?

0 Answers  


Categories