Answer:
for(int i = 0;i<a.length;i++)
{
a.arr_ptr[i] = a.arr_ptr[i] + 1;
}
Step-by-step explanation:
Step by step explanation of above code is as follows:
for(int i = 0;i<a.length;i++)
- Initiating the for loop from "i=0" until "i" become equal to the variable length (number of elements in array).
a.arr_ptr[i] = a.arr_ptr[i] + 1;
- Taking each value of "i" from the loop to be the index of array arr_ptr and adding one to each element of array one by one.