```
#include<stdio.h>
#include<iostream.h>
#include<conio.h>
void main()
{
int size=5,i,j;
clrscr();
//cout<<"Enter the length of array : ";
// cin>>size;
int *array = new int[size];
cout<<"Enter elements "<<endl;
for(i=0;i<size;i++)
cin>>array[i];
for(i=0;i<size-1;i++)
{
for(j=i+1;j<size;j++)
{
if(array[i]>array[j])
{
int temp;
temp=array[i];
array[i]=array[j];
array[j]=temp;
}
}
}
cout<<"Sorted array"<<"\n";
for(i=0;i<size;i++)
cout<<array[i]<<' ';
for(i=array[i];i>0;i--)
{
delete[] array;
cout<<"\n"<<array[i]<<"\n";
}
getch();
}
```

after deleteing I want to show the array contents........ This is my problem...

Please help me............... please correct this problem....