0

Why?

Still having problem with this problem, could someone explain me why does it start to change letters only from "o" letter. https://code.sololearn.com/c5EXlYJw6D2s/?ref=app

3rd May 2020, 4:33 PM
Illia Zalizniak
Illia Zalizniak - avatar
1 ответ
0
The problem is: reverse = alphabet Here bothe are pointers. So now reverse is also pointing at the the same array. So if you reverse "reverse", alphabet will also reverse. Instead use CopyTo method to assign value to reverse
3rd May 2020, 9:26 PM
Mayank Dhillon
Mayank Dhillon - avatar