Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Want to build the c++ sort function without using library . So I build the code but error code appeared. Can you fix this? The
Want to build the c++ sort function without using library. So I build the code but error code appeared. Can you fix this? The code is shown below
#include
using namespace std;
// build sort function
void fc_sort(int Li[], int size){
for (int i=0; i for (int j=i+1; j if ( Li[i] > Li[j]){ Li[i] = Li[j]; } } } for (int i=0; i cout << Li[i] << " "; } } int main(){ int LL[] = {3,4,5,1,2}; fc_sort(LL, 5); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started