Question: Enter the return of the below function when it's called as f - array ( 3 , i _ array ) when int i _

Enter the return of the below function when it's called as f-array(3,i_array) when int i_array[10]={1,2,5,4,1,1,7,3,10,3}.
int f_array(int n,int a[]){
int i;
int *ptr;
ptr=a;
for
if
return &a[i]-ptr;
}
}
return &a[i]-ptr;
}
 Enter the return of the below function when it's called as

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!