✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
We want to write a swap_array function that swaps the values of the elements at indices i and j of an array t (we assume that i and j are valid indices). Among the following definitions, which one is the correct implementation of the swap function ?