I have this piece of code:
#include <stdio.h>
int max_number(int numbers_array[]);
int main(){
int numbers_array[] = {10, 20, 30, 40, 50, 10, 60, 2500, 25555};
printf("size: %d\n", sizeof(numbers_array));
max_number(numbers_array);
return 0;
}
int max_number(int numbers_array[]){
printf("size of array: %d\n", sizeof(numbers_array));
}
And the output is:
size: 36
size of array: 8
But the output should be the same right? Does anyone know what the problem is? Thank you very much.