#include <iostream>
#include <array>
#include <utility>

std::pair< std::array<int,3>, std::array<char,4> > array_function()
{
   //does alot of maths here
   std::array<int,3> numbers = { 1, 2, 3 } ;
   std::array<char,4> letters = { 't', 'y', 'u', 'w' } ;

   //return both arrays
   return { numbers, letters } ;
}

int main()
{
    auto p = array_function() ;

    auto int_array = p.first ;
    for( int i : int_array ) std::cout << i << ' ' ;
    std::cout << '\n' ;

    auto char_array = p.second ;
    for( char c : char_array ) std::cout << c ;
    std::cout << '\n' ;
}
