Kokoma programme ya C++ pona ko reverser ba éléments ya array.
Tala programme ya C++ pona ko reverser ba éléments ya array: ```c++ #include <iostream> using namespace std; void reverseArray (int arr [], int n) { // Kobanda ba index ya ebandeli mpe ya suka int ebandeli = 0; int nsuka = n-1; // Boucle likolo ya ndambo ya array while (start < end) { // Swap ba valeurs na ebandeli na suka int temp = arr[start]; arr [ebandeli] = arr [suka]; arr [nsuka] = temp; // Bobakisi ebandeli mpe bokitisi suka ebandeli++; nsuka--; } } void printArray(int arr[], int n) { // Boucle likolo ya array mpe imprimer ba valeurs mpo na (int i = 0; i < n; i++) cout << arr[i] << " "; cout << nsuka na yango; } int principal () { int arr [] = {1, 2, 3, 4, 5, 6}; int n = bonene ya (arr) / bonene ya (arr [0]); cout << "Elongo ya ebandeli: "; imprimerieArray (arr, n); // Bozongisi sima na array reverseArray (arr, n); cout << "Elongo oyo ezongisami sima: "; imprimerieArray (arr, n); zongisa 0; } ```