int arrayNums[] = { 1, 2, 3}; int first = arrayNums[0]; for (int i = 0; i < 2; i++) { arrayNums[i] = arrayNums[i+1] } arrayNums[2] = first