#include <iostream> #include <cstdio> using namespace std; void change(char *str); int main() { setlocale(LC_ALL, "RUSSIAN"); char str[100] = "The sun is hot."; cout << str << endl; change(str); cout << str << endl; return 0; } void change(char *str){ char chs[] = ", "; while (*str) { if (*str == ' ') { memcpy(str, chs, strlen(chs)); str += strlen(chs); } else { str++; } } } Help deal with the task. I do not understand how to move subsequent elements by one position. I should get a string longer than the original. 