Sorry, you cannot get this. In C, the following 2 are equivalent declarations.
int MyFunction( const float arr[] ); int MyFunction( const float* arr );
You must transfer the size yourself.
int MyFunction( const float* arr, int nSize );
In the case of char pointers representing strings, the length of the char array is determined by the delimiter '\0' .
source share