size=4;Code:int min_num(int arr[],int index, int minIndex, int size){
if (index==size)
return minIndex;
else
if (arr[index]<arr[minIndex])
minIndex=index;
min_num(arr,index+1,minIndex,size);
}
index=1;
minindex=1;
if i have array={3,2,5,1}
i need find index of the minimum number in the array
minIndex=3, because 1 is the minimum number,,
but this returning 0!! why??
how i can return 3!!???