For an assignment I have to make two functions that swap character arrays.
One using void swap( char str1[], char str2[] ); and the other using void swap( char *str1, char *str2);
I have the first function working correctly, but I don't know how you are supposed to swap using pointers. Won't you need a pointer for every address in the array?
The function will be similar to the one on line 17 , you arrays are implicitly converted to pointers , just add ab offset to get your current pointer such that your line 24 is equivalent to