initialize them as array elements and then in tke other function display them
using "cout".
//in this program we also use global array to use in functions
//and also pass out the array as arguments
//in this program i pass the array to function by paramter
#inlcude<iostream>
using namespace std;
void arrayprint(int arrayvalues[],int arraysize)
//in this function we make to parameters in function in first we enter the name
of array and
//in second paramter we pass the size of array
void main()
{
int values[]={1,2,3,4,5}//intilization of integer type array it contains only
five values
arrayprint(values,5);
return 0;
}
void arrayprint(int arrayvalues[],int arraysize)
{
arraysize-=1;
for(int a=0;a<=arraysize;a++)
cout<<arrayvalues[a]<<endl;
}
[Non-text portions of this message have been removed]