Question: Language: C Programming Source Code: #include void sort_ascending_with_repeats_allowed(int *a, int *b, int *c); int main(void) { int x, y, z; x = 43; y =
Language: C Programming
Source Code:
#include
void sort_ascending_with_repeats_allowed(int *a, int *b, int *c);
int main(void)
{
int x, y, z;
x = 43;
y = 2;
z = 43;
printf("Before sorting: ");
printf("x = %d, y = %d, z = %d ", x, y, z);
sort_ascending_with_repeats_allowed(&x, &y, &z);
printf(" ");
printf("After sorting: ");
printf("x = %d, y = %d, z = %d ", x, y, z);
printf(" ");
if (x == 2 && y == 43 && z == 43)
{
printf("Hooray! ");
}
else
{
printf("oh no :( ");
}
return 0;
}
Produce Result:

1 Before sorting: 2 x43, y 2, z 43 4 After sorting: 6 7 Hooray
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
