I'm doing an assignment for a C++ class, and I can't seem to figure out why my program keeps hiccoughing in the middle of running. The program runs fine when I run only the strlen_recursive function, but when i run the strcpy_recursive function, it stops and gives me an error. Any help would be greatly appreciated!
oh wait i think i know the problem. so i believe that when u have an empty array of chars (in this case copy), copy[0] is \0 so its already at the end. and string currently points to the end because of strlen_recursive. so the first time they are called in and copy both equal '\0'