Not able to perform sorting

#include
using namespace std;

void Bubble_sort(int a, int n){
for(int i=0; i<n-1; i++){
for(int j=0; j<n-i-1; j++){
if(
(a+j)>(a+j+1)){
swap(
(a+j),*(a+j+1));
}
}
}
}

void printArray(int a,int n){
for(int i=0; i<n; i++){
cout<<
(a+i)<<" ";
}
}

int main()
{
int a[]={3,7,9,11,23,48};
int n=sizeof(a)/sizeof(int);
cout<<"before SORTING : "<<endl;
printArray(a,n);
cout<<endl;
Bubble_sort(a,n);
cout<<"after SORTING : "<<endl;
printArray(a,n);
return 0;
}

-----> after sorting’s output is same as printarray,

o/p–>

before SORTING :
3 7 9 11 23 48
after SORTING :
3 7 9 11 23 48

hi @dhruvbains41_f4a2b1bd46c7d36b send the code in saving in some online ide

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.