Heap_Sort.cpp
/* function to print array of size n */
function to print array of size n
function to print array of size n
void printArray(int arr[], int n)
{
    for (int i = 0; i < n; i++)
    {
        cout << arr[i] << " ";
    }
    cout << "\n";
}
void printArray ( int arr [ ] , int n ) { for ( int i = 0 ; i < n ; i ++ ) { cout << arr [ i ] << " " ; } cout << " \n " ; }
function to print array of size n
function to print array of size n