Hard way...

void selectionSort(int *p)
{
int i,j,temp;
for(i=0;i<24;i++)
{
for(j=1;j<25;j++)
{
if(*(p+i)>*(p+i+j))