|
-
November 5th, 2010, 10:18 AM
#3
Re: Array of references
I have a sample program created for array of references, it works fine.
void main()
{
cout << endl << endl << "Values in nArray2 when referenced" << endl;
int pnArray2[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int (&array_ref)[ 10 ] = pnArray2;
for(int i=0;i < 10; i++)
{
cout << array_ref[i] << endl;
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|