Iterating an array with range

This examples show how to interate through an array as a range.

#include <cstdio>

int main() {

    unsigned int my_array[] = {30, 21, 46, 2, 13};
    for (unsigned int value : my_array)
    {
        printf("Value: %d\n", value);
    }
    
}
$ g++ iterate_array.cpp -std=c++17 -o iterate_array 
$ ./iterate_array
Value: 30
Value: 21
Value: 46
Value: 2
Value: 13