#include <iostream>
#include <algorithm> // STL algoritms
#include <iterator>  // for std::ostream_iterator

int main()
{
    const int SIZE = 5;
    int iarr[ SIZE ] = { 1, 2, 3 };
    int dummy[ SIZE ] = { 0 };
    // Copy elements from iarr to dummy:
    std::copy(
        iarr,
        iarr + SIZE,
        dummy
        );
    // Display elements of dummy array:
    std::copy(
        dummy,
        dummy + SIZE,
        std::ostream_iterator< int >( std::cout, "\t" )
        );
    return 0;
}