C++ Code Example: odd numbers in an array

In this C++ code example all odd numbers are read from an array.

#include <iostream>
using namespace std;

int main() {
    int numbers[] = {33, 431, 41, 76, 83, 99, 46, 9, 22};
    int arrayLength = end(numbers) - begin(numbers);

    for (int i = 0; i < arrayLength; i++) {
        if (numbers[i] % 2 != 0) {
            cout << numbers[i] << " ";
        }
    }

    return 0;
}
Output
33 431 41 83 99 9