Hello Everybody... I'm a student and i have recently started learning C++.
We are learning functions right now.. somebody please tell me how to use arrays given in the main function in some other user defined function...
like in the prog:
void main()
{
void array();
int n[*0]={*,2,*,4,5,6,7,8,*,*0}
getch();
array()
}
void array()
{
int var[*0];
cout<<var;
}
u see i want to use the value given in the main function i.e. value stored in array n in my function 'array'... how can i do that.. plz tell... if an example can be given i'll be thankful