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

how does the C compiler interpret the following two statements p=p+x; q=q+y; a. p=p+x; q=q+y b. p=p+xq=q+y c. p=p+xq; q=q+y d. p=p+x/q=q+y

2 Answers   TCS, Tech Synergy,


What is c variable?

0 Answers  


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

0 Answers  


Why structure is used in c?

0 Answers  


What does sizeof function do?

0 Answers  






What is wrong in this statement?

0 Answers  


how to determine the complexity of an algorithm as log(n)

1 Answers   Google,


What is the collection of communication lines and routers called?

0 Answers  


write a c program to find biggest of 3 number without relational operator?

12 Answers   TCS, Wipro,


What is string function in c?

0 Answers  


What is .obj file in c?

0 Answers  


what are the advantage of pointer variables? write a program to count the number of vowels and consonants in a given string

3 Answers  


Categories