12
arr[minValue] = arr[startScan]; minIndex = minValue;
arr[minIndex] = arr[startScan]; // location minIndex now has the value that startScan had. arr[startScan] = minValue; // location startScan now has the value that minIndex had (minValue)