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 |
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
What is c variable?
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
Why structure is used in c?
What does sizeof function do?
What is wrong in this statement?
how to determine the complexity of an algorithm as log(n)
What is the collection of communication lines and routers called?
write a c program to find biggest of 3 number without relational operator?
What is string function in c?
What is .obj file in c?
what are the advantage of pointer variables? write a program to count the number of vowels and consonants in a given string