what is the difference between NULL('\0') and 0?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is dynamic memory allocation?
How many bytes are occupied by near, far and huge pointers (dos)?
What are the salient features of c languages?
What is conio h in c?
array of pointer pointer to array pointer to pointer
Write a program to exchange two variaables without temp
Why is c so powerful?
What is a void pointer in c?
what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???
How can you print HELLO WORLD without using "semicolon"?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
write an algorithm to display a square matrix.