what is the difference between NULL('\0') and 0?
Answer Posted / 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 |
Post New Answer View All Answers
What is difference between stdio h and conio h?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
what is the basis for selection of arrays or pointers as data structure in a program
What is typedef example?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What is the difference between array and pointer in c?
Does * p ++ increment p or what it points to?
What is modifier & how many types of modifiers available in c?
In C programming, what command or code can be used to determine if a number of odd or even?
Lists the benefits of c programming language?
Explain what are multidimensional arrays?
What is the scope of static variable in c?
What is c language & why it is used?
Can include files be nested? How many levels deep can include files be nested?