✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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 ?