please give me some hint .so that i can solve this question recursively
Need some hint to solve question recursively
Use a recursive function like this to print:
void print(char* word,int i,int length)
{
if(i==length)
return;
if(word[i]!=word[i+1])
cout<<word[i];
print(word,i+1,length);
}
Check/ Dry run with an example.