The following is a function of some class which sorts an integer array a[ ] in ascending order using selection sort technique. There are some places in the code marked by ?1?, ?2?, ?3?, ?4?, ?5? which may be replaced by a statement/expression so that the function works properly:
void selectsort(int [ ]a)
{
int i, j, t, min, minpos;
for(i=0;i
{
min=a[i];
minpos = i;
for(j=?2?;ya[j])
{ ?3?=j;
min = ?4?;
}
} t=a[minpos];
a[minpos]=a[i];
a[i]= ?5?;
}

(i) What is the expression or statement at ?1?
(ii) What is the expression or statement at ?2?
(iii) What is the expression or statement at ?3?
(iv) What is the expression or statement at ?4?
(v) What is the expression or statement at ?5?