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 is #define?
struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator??
Is multithreading possible in c?
What is the difference between far and near in c?
what is the output of the below code? main( ) { printf ( "\nOnly stupids use C?" ) ; display( ) ; } display( ) { printf ( "\nFools too use C!" ) ; main( ) ; }
Why is c so powerful?
C program to perform stack operation using singly linked list
Why header files are used?
What is the use of putchar function?
Explain how do you list a file’s date and time?
how to swap 2 numbers within a single statement?
What is static memory allocation?