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
How does selection sort work in c?
Explain what are the advantages and disadvantages of a heap?
What is %s and %d in c?
Write a program of advanced Fibonacci series.
Explain why can’t constant values be used to define an array’s initial size?
What is indirection?
write a program to find the given number is prime or not
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
What are the standard predefined macros?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What are header files and what are its uses in C programming?
ATM machine and railway reservation class/object diagram
Why do we need volatile in c?
What are the __date__ and __time__ preprocessor commands?
Why c language is called c?