Question: Write a C function called rotateLeftN that takes a 1D-array of type double, the size of the array, and an integer value N as input

Write a C function called rotateLeftN that takes a 1D-array of type double, the size of the array, and an integer value N as input arguments. The function modifies the passed array by rotating each element of the array to the left by an amount specified by N. ROTATE LEFT non Example: If the passed array is: 1.0 5.0 3.5 8.0 12.0 4.6 then, a left rotation by an amount of 1 will result in: 5.0 3.5 8.0 12.0 4.6 1.0 And a left rotation by an amount of 2 will result in: 3.5 8.0 12.0 4.6 1.0 5.0 Note: Your function must be general and not specific to the above example. Your function must NOT contain any scanf and printf statements. Assume that N is a positive value. Do NOT write the main function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
