The strings are stored in a memory, and they get terminated by the null character. The strings are nothing but characters arranged sequentially. The string characters are basically sored as the array of chars which is terminated by the null byte.