string in C

Strings in C are always represented as an array of characters having null character '\0' at the end. This null character denotes the end of the string. 
Strings in C are enclosed within double quotes, while characters are enclosed within single characters. The size of a string is a number of characters that the string contains.
The following declaration and initialisation create a string consisting of the word "Hello". To hold the null character at the end of the array, the size of the character array containing the string is one more than the number of characters in the word "Hello".
```
char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'};
```
If you follow the rule of array initialisation then you can write the above statement as follows:
```
char greeting[] = "Hello";
```
Example of C strings.
```
#include <stdio.h>

int main () 
{
  char greeting[6] = { 'H', 'e', 'l', 'l', 'o', '\0' };
  printf ("Greeting message: %s\n", greeting);

  char greeting2[] = "Hello";
  printf ("Greeting message 2: %s\n", greeting2);

  return 0;
}
```
Output:
```
Greeting message: Hello
Greeting message 2: Hello
```