Array Input Output (Function Template)#11423

Array Input Output (Function Template)

1 second
256 megabytes
Very easy

Write a function (template) for array input

void input_arr(T *arr , int &n)

and for array output

void output_arr(T *arr , int n)

Input

The first line contains the number — the number of elements in the array.

The next line contains values of the same type.

Values can be numbers, strings, etc.

Output

In one line, print elements of the array that were entered.