Let Us C Solution | Chapter 14 Exercise C (k) | Circularly shift array elements using function in C
Duration: 23:40 Min | Sep 10, 2023
Attempt the following:
Given an array p[5],
write a function to shift it circularly left by two positions.
Thus, if
p[0]=15, p[1]=30, p[2]=28, p[3]=19 and p[4]=61
then after the shift
p[0]=28, p[1]=19, p[2]=61, p[3]=15 and p[4]=30
Call this function for a (4 x 5) matrix and get its rows left shifted.