I'm very new to programming and would like to know if this code can also be considered a recursion since it calls itself. Also would like to know if this is good practice.
void editArr(int arr[], int arrSize){
int index;
cout << "Enter INDEX: ";
cin >> index;
if(index >= arrSize){
cout << "INDEX is OUT OF BOUNDS" << endl;
editArr(arr, arrSize);
}
cout << "Enter VALUE: ";
cin >> arr[index];
cout << "\n[1] Continue || [0] Exit";
cin >> choiceExit;
if(choiceExit == 1)
editArr(arr, arrSize);
}