what is diffrence between string and character array?
Answer / vadivelt
By default String always ends with NULL character ie., '\0'.
But in character array manually it is needed to terminate
with NULL(You can do this, only when you wanted to use
character array as string)
Eg;
char *p = "Vadivel"; /*By default string is terminated
with '\0'*/
char array[8] = {'V','a','d','i','v','e','l','\0'};
/*Here terminated manually*/
Is This Answer Correct ? | 9 Yes | 1 No |
What are the __date__ and __time__ preprocessor commands?
What is volatile c?
Explain the properties of union. What is the size of a union variable
what is the importance of spanning tree?
Give a method to count the number of ones in a 32 bit number?
What is conio h in c?
Where does the name "C" come from, anyway?
second highest number in a given set of numbers
What does %c do in c?
What are the types of assignment statements?
How to removing white spces in c programming only bu using loops
What does a function declared as pascal do differently?