1. Engineering
  2. Computer Science
  3. sorry array with pointers using bubble sort include ltiostreamgt using...

Question: sorry array with pointers using bubble sort include ltiostreamgt using...

Question details

Sorry Array with Pointers

Using Bubble Sort

#include <iostream>
using namespace std;

int main()
{
int x[5] = {4,57,10,11,62};
int *p1 = x;
int *p2 = x+1;
int temp;
bool sp;
  
cout << endl;
  
for (int i=0; i < 5; i++)
cout << *(x+i) << " ";
cout << endl;
  
int *last = nullptr;
last = &number[4];
  
do
{
  
  
  
  
}while (sp);
  
cout << endl;
  
for (int i=0; i < 5; i++)
cout << *(x+i) << " ";
cout << endl;
  
}

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution