Question: Rotation using Pointer ** THIS CODE SHOULD BE WRITTEN IN C *** Write a program that rotates a series of characters in any direction for
Rotation using Pointer
** THIS CODE SHOULD BE WRITTEN IN C ***
Write a program that rotates a series of characters in any direction for a given number of times. Your input would be 4 characters for series, 1 character for rotation direction (left/right) and an integer to select the number of rotation. You must take input of the 4 characters for series in pointer type variables. Write one function for rotating the characters to left, another for right. Call the functions from the main function. Your series characters should have new swapped values after the rotation. Print the characters from the main function after you are done with your rotation.
Sample Input and Output: (Your code should print the red texts on the screen. Black texts are sample user inputs)
Symbol
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
