what is the difference between NULL('\0') and 0?
Answer Posted / 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 |
Post New Answer View All Answers
Is anything faster than c?
How do you determine a file’s attributes?
If the size of int data type is two bytes, what is the range of signed int data type?
What are shell structures used for?
Explain what is the benefit of using enum to declare a constant?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Explain enumerated types.
What do you mean by a sequential access file?
Differentiate between functions getch() and getche().
What is null in c?
How can I handle floating-point exceptions gracefully?
What are the two forms of #include directive?
What are the complete rules for header file searching?
What is the difference between declaring a variable and defining a variable?
Write a program to print fibonacci series without using recursion?