When you specify name of an array in an expression similar that you are using it is converted to a pointer to its first element. So the address of the first element is displayed.
To display elements of an array you should specify the array elements not the array itself.
For example
for ( auto x : example ) std:;cout << x << ' ';
Or
1 2 3 4
for ( size_t i = 0; i < sizeof( example ) / sizeof( *example ); i++ )
{
std::cout << example[i] << ' ';
}