I have the following code in c:
void getNumber(int numberArray[])
{
printf("The size of the array is %u", sizeof(numberArray));
}
void main()
{
int array[6] = {1,2,3,4,5,6};
getNumber(array);
}
but why the The size of the array is 4
? And how to get the size of whole array?