Hello,
I want to rotate an array, but I haven't had any luck yet. I want it like this:
I want it to rotate by one, to the right, like:Code:char array[3][4] = {'0'}; array[0] = "haai"; array[1] = "hiii"; array[2] = "hooh";
array[0] = array[1]
array[1] = array[2]
array[2] = array[0]
so instead of "haaihiiihooh" you have "hiiiihoohhaai". The index of the array is different all the time, depending on the user input.
Can someone help me with this one please?
Thanks.