#include <cstring>
char word[5] = "?ate";
for (char ch='a';strcmp(word,"mate");ch++)
{
cout<<word<<endl;
word[0]=ch;
}
#include <cstring>
char word[5] = "?ate";
for (char ch='a';strcmp(word,"mate");ch++)
{
cout<<word<<endl;
word[0]=ch;
}