S
sword
void test(int*& a);
int main()
{
int a[4];
test(a);
return 0;
}
Who can tell me the reason why the source above can't compile?
I use VC++ 6.0.
test.cpp(7) : error C2664: 'test' : cannot convert parameter 1 from
'int [4]' to 'int *& '
int main()
{
int a[4];
test(a);
return 0;
}
Who can tell me the reason why the source above can't compile?
I use VC++ 6.0.
test.cpp(7) : error C2664: 'test' : cannot convert parameter 1 from
'int [4]' to 'int *& '