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 are the application of c?
what is different between auto and local static? why should we use local static?
show how link list can be used to repersent the following polynomial i) 5x+2
What is a far pointer in c?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
How #define works?
What are reserved words with a programming language?
Can you please explain the difference between strcpy() and memcpy() function?
Does free set pointer to null?
Is c call by value?
Tell me what is the purpose of 'register' keyword in c language?
Why c is faster than c++?
differentiate built-in functions and user – defined functions.
What is the function of this pointer?