what is diffrence between string and character array?
Answer Posted / 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 |
Post New Answer View All Answers
What are the primitive data types in c?
What is array of pointers to string?
How many types of operator or there in c?
Write a program to identify if a given binary tree is balanced or not.
#include
Is c a great language, or what?
When should I declare a function?
What are keywords c?
Why does everyone say not to use scanf? What should I use instead?
What is the difference between functions abs() and fabs()?
When should the volatile modifier be used?
Can you write a programmer for FACTORIAL using recursion?
What is binary tree in c?
What is a char c?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.