A string is defined as an array of characters. Strings are terminated by the special character ‘o’; this is called a null parameter or null terminator. When you declare the string, you should ensure that you should have sufficient room for the null terminator. The null terminator has ASCII value 0.
Program
main ( ) { char s1[6]; \ A char s2[6]; char ch; int cnt = 0; s1 = "Hello"; \ B printf ("%s ", s1); \ C s2 = {'H', 'e', 'l', 'l', 'o'} \ D printf("%s ", s2); \ E while ( (ch = getchar() )! = '#' && (cnt < 6-1) ) \ F s1[cnt++] = ch; \ G s1[cnt] = '