L
linq936
Hi,
If the function signature is like this:
int func( int arr[] );
Or this:
int func ( int* arr );
Then inside the function I have no way to know the size of the
array, is that right?
I tried sizeof(arr)/sizeof(int), I get 1.
So this means that I must change the signature so that the caller of
this function must provide the size.
Thanks.
If the function signature is like this:
int func( int arr[] );
Or this:
int func ( int* arr );
Then inside the function I have no way to know the size of the
array, is that right?
I tried sizeof(arr)/sizeof(int), I get 1.
So this means that I must change the signature so that the caller of
this function must provide the size.
Thanks.