#include"stdio.h"
#include"conio.h"
void main()
{
void bubblesort(char *R[], int a); //function declaration//
char *restname[20][30]; //Variable in main//
bubblesort(restname[30], 20)//Function bubblesort in main//
void bubblesort(char *R[], int a)//function bubble sort//
{
int i, j;
char *hold;
for(i= 0; i < a; i++)
{
for(j=0; j
{
if(R[j] < R[j+1])
{
hold = R[j];
R[j] = R[j+1];
R[j+1] = hold;}
}
}
for(i=0; i
{
printf("%s", R[i]);
printf("\n");
}
} //end function//
}
}
help with the declaration part
2007-12-08
04:09:59
·
2 answers
·
asked by
sriram
2
in
Computers & Internet
➔ Programming & Design