char words[5] = { 't', 'd' , 'o', 'g', 'i', };
cout << "enter letter ";
char dogsearch[3] = { 'd', 'o', 'g' };
if (words == dogsearch)
cout << "found words";
else
cout << "Not found word";
i have two arrays and comparing them with each other to find the similiarity, and differences within each another, if there is similiar i want to output how it is, and vice versa