Write a function that reorders the values in two integer variables such that the values are in ascending order (variable a will have the lower value and variable b will have the higher value). Use the function prototype below. Note the variables are passed to the array as pointers to the actual integers. void reorder (int *a, int *b);

icon
Related questions
Question

code in C

**Task Description:**

Write a function that reorders the values in two integer variables such that the values are in ascending order (variable `a` will have the lower value and variable `b` will have the higher value). Use the function prototype below. Note the variables are passed to the function as pointers to the actual integers.

```c
void reorder (int *a, int *b);
```
Transcribed Image Text:**Task Description:** Write a function that reorders the values in two integer variables such that the values are in ascending order (variable `a` will have the lower value and variable `b` will have the higher value). Use the function prototype below. Note the variables are passed to the function as pointers to the actual integers. ```c void reorder (int *a, int *b); ```
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer