int arr[10]={7,8,1,2,5,4,6,5,2,12};
int len=sizeof(arr)/sizeof(arr[0]);
void add(int*p1,int length)
{
for(int i=0;i<length-1;i++;)
{
for(int j=0;j<length-1-i;j++;)
{
if(arr[j]<arr[j+1])
{
int num=arr[j];
arr[j]=arr[j+1];
arr[j+1]=num;
}
int arr[10]={7,8,1,2,5,4,6,5,2,12};
int len=sizeof(arr)/sizeof(arr[0]);
void add(int*p1,int length)
{
for(int i=0;i<length-1;i++;)
{
for(int j=0;j<length-1-i;j++;)
{
if(arr[j]<arr[j+1])
{
int num=arr[j];
arr[j]=arr[j+1];
arr[j+1]=num;
}