(31)以下程序中函数f 的功能是:当flag 为4 时,进行有小到大排序;当flag为0时,进
行由大到小排序。
void f(int b[],int n,int flag)
{int i,j,t;
for(i=0;i<n-1