[Solved] c++ Array MEMMOVE bug
[ad_1] In your memmove call, you are using the incorrect length: memmove(s1+i+1,s1+i,strlen(s1)); strlen(s1) is the length of the string starting from the beginning and not including the null terminator. So there are two problems. First, you want the length of the string starting from the current position. Second, you want the length including the null … Read more