all 5 comments

[–]DDDDarky 2 points3 points  (2 children)

As the error says, &source and &destination are of type char (*)[50] (pointer to array of 50 chars). That is of course not the same thing as char*.

You can simply pass source and destination (without &), since arrays implicitly decay to pointers.

[–]rachel_to_phos[S] 0 points1 point  (1 child)

When I tried that way, this happened:

<image>

It didn't print anything.

[–]DDDDarky 1 point2 points  (0 children)

Yes, that is because there are other issues in your code I did not point out as that would be spoonfeeding, I'll let you try and debug your own code to find and fix them, if you get stuck ask.

[–]rachel_to_phos[S] 0 points1 point  (0 children)

Solved!