Shifting char array in C
<p>For example, if I have a string in an char array like "abcdef", then I would like to print a new string "bcdefa" then next would be "cdefab" and so on until it cycles through the string ending up at "fabcde"</p>

<p>Sorry I am new to C and not the best of array manipulation and unsure what would be the easiest approach.</p>

<p>I was thinking maybe rearranging the indexes at first? but I wasn't sure how to loop that. Or could I approach this in a more efficient way using some function from the string.h library?</p>