++ ++if(pat[ ]=='\ 'copy_loop=kwhile(rep_pat[rep_index!='\ 'new_str[nrep_pat[rep_index]rep_index++ ++new_str[nstr[copy_loop] ++copy_loop++ ++new_str[ ]='\ 'printf("\ the new string is ")puts(new_str)getch()return output enter the string how are youenter the pattern to be replaced are enter the replacing pattern are the new string is how are you arrays of strings till now we have seen that string is an array of characters for exampleif we say char name["mohan"then the name is string (character arraythat has five characters nowsuppose that there are students in class and we need string that stores the names of all the students how can this be doneherewe need string of strings or an array of strings such an array of strings would store individual strings an array of strings is declared as char names[ ][ ]herethe first index will specify how many strings are needed and the second index will specify the length of every individual string so herewe will allocate space for names where each name can be maximum characters long let us see the memory representation of an array of strings if we have an array declared as char name[ ][ {"ram""mohan""shyam""hari""gopal"}then in the memorythe array will be stored as shown in fig namename[ name[ name[ name[ ' ' ' ' 'figure memory representation of character array