void fast_sort( int64_t *elements )
{
int64_t length = sizeof( elements ) / sizeof( *elements );
printf("%ld", length);
}
int32_t main( void )
{
int64_t array1[] = {3, 2};
int64_t array2[] = {3, 2, 1};
int64_t array3[] = {4, 3, 2, 1};
int64_t array4[] = {5, 4, 3, 2, 1};
fast_sort(array1);
fast_sort(array2);
fast_sort(array3);
fast_sort(array4);
return 1;
}
Perchè stampa sempre 1?