[LIST=1]
[*]void selectionsort(int numbers[],int arraysize)
[*]{  int i,indes,large,j;
[*]   for(i=arraysize-1;i>0;i--)
[*]      {   large=numbers[0];
[*]           index=0;
[*]           for(j=1;j<=1;j++)
[*]              {  if(numbers[j]>large)
[*]                      {   large=numbers[j];
[*]                           index=j;
[*]                       }
[*]              }
[*]        numbers[index]=numbers[i];
[*]        numbers[i]=large;
[*]     }
[*]}
[/LIST]

i have been able to understand upto 7 line. can someone help me further?

I have no clue what you want.

please explain what problems are you facing ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.