program.cpp
Document Details
Uploaded by SafeVariable7723
Full Transcript
\#include\ using namespace std; void swap(int *a, int* b){ int temp = *a;* a = *b;* b = temp; } void selection\_sort(int arr\[\],int n){ for(int i=0;i\0 && arr\[j\]\
\#include\ using namespace std; void swap(int *a, int* b){ int temp = *a;* a = *b;* b = temp; } void selection\_sort(int arr\[\],int n){ for(int i=0;i\0 && arr\[j\]\