shetuhcute9780 shetuhcute9780
  • 19-12-2022
  • Engineering
contestada

The following function is written to sort n integers given in array a in ascending order. There are errors in this code. Fix them.
void MySort(int *a, int n){
for(int i=0; i for(int j=0; j if (a[i] < a[j]){
a[j] = a[i];
a[i] = a[j]; }
} }
}

Respuesta :

Otras preguntas

Explain why death is part of the life cycle of a plant.
find the sum nineteen and seven tenths added to four and ninety-two hundredths
how do you solve 8(3a+6)=9(2a-4)
the ravens won three more games than they lost.they played 96 games.how much games did they win?
factor this equation 4-49w^2
Which list describes the properties of a liquid? A. fixed volume, definite shape B. fixed volume, takes the shape of its container C. completely fills its cont
What is pasteurisation means?
0.1 is ten times as much as
What are some of physicals properties that describe terriers
Consider a sample space of three outcomes A,B,and C. Which of the following represent legitimate probability models?  A. P(A)=0.1, P(B)=0.1, P(C)=1  B. P(A)=0.2