Sementation fault error

in base case you forgot to return
corrrect one

    //base case 
    if(in[i]=='\0'){
        out[j]='\0';
        cout<<out<<endl;
        return;
    }

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved :grinning:
if you have more doubts regarding this feel free to ask

1 Like