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 |
Why do we need arrays in c?
write a c program in such a way that if we enter the today date the output should be next day's date.
How is pointer initialized in c?
every function has return the value?
What is difference between scanf and gets?
Read two numbers from keyboard and find maximum of them?
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?
write a c prog for removing duplicate character from an array and sorting remaining elements using a single array
Write a program to know whether the input number is an armstrong number.
what is the difference between %d and %*d in c languaga?
The __________ attribute is used to announce variables based on definitions of columns in a table?