I am reading the character sequences section of this tutorial here.
It has mentioned the null character '0' but it doesn't have any example.
please give me a simple example of null character.
Using "Hello" the null character is automatically added, using { 'H', 'e', 'l', 'l', 'o', '\0' } you have to put it or when diplaying the array you will see all characters until the next '\0'
Only when those arrays are initialized with the syntax Bazzy used above: char hello[]={'H','e','l','l','o','\0'};
You don't have to if you use this syntax: