Varying intializer in 'for loop' c++ :     int i=0;
    for(; i<size-1; i++){
        int temp = arr[i];
        arr[i] = arr[i+1];
        arr[i+1] = temp;
    }

Here I started with the fist position of array. What if after the loop I need to execute the for loop again where the for loop starts with the next position of array. 

Like for first `for loop` starts from: Array[0]

Second iteration: Array[1]

Third iteration: Array[2]  

Example:
For array: 1 2 3 4 5

for i=0: 2 1 3 4 5, 2 3 1 4 5, 2 3 4 1 5, 2 3 4 5 1

for i=1: 1 3 2 4 5, 1 3 4 2 5, 1 3 4 5 2 so on. 