When you declare an array
what type does myarray get? "Array of hundred ints"?Code:int myarray[100];
Is that why you get sizeof(myarray) == 400 while you would get sizeof(myarrayhead) = 4 if you declare
?Code: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?