Question: C++ 5. Write a function that ask the user the number of shift they want and shift the array according. Note: You CANNOT use any
5. Write a function that ask the user the number of shift they want and shift the array according. Note: You CANNOT use any additional arrays. You should write a swap function. For example, if the input characters are abcadebca and the number of spaces to shift is 3, the output will be: bcaabcade If the number of spaces is negative, the shift will be to the left
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
