void f(int* b[])
{
cout << sizeof(*b) << endl;
}
int main()
{
int x[4] = {1, 2, 3, 4};
int* a[] = {&x[0], &x[1], &x[2], &x[3]};
cout << sizeof(a) << endl;
f(a);
}
The program is output firstly 32 (in main) and 8 (in function)
How do i handle this situation?