When you declare an array
what type does myarray get? "Array of hundred ints"?Code:
Is that why you get sizeof(myarray) == 400 while you would get sizeof(myarrayhead) = 4 if you declare
int *myarrayhead = malloc(100 * sizeof(int));
So if you send myarray as an argument, the whole array will be copied and sent to the function, while if you send myarrayhead as an argument to another function, just the pointer will be copied and sent?