To pass an array to a function, you can simply use int *array
:
void outputNums(int *numArray)
{
for(int x=0; x<numArraySize; x++)
{
cout << numArray[x];
if(x != numArraySize-1)
{
cout << " - ";
}
}
}
Please note that it would be better to use a standard container like a vector.