Array-to-pointer decay means the declaration int a[10] in a parameter list is adjusted to int *, so sizeof inside f measures a pointer, which is 8 bytes under LP64. The original array in its defining scope would give 40, since sizeof applied to an array type yields the whole array size. The classic exam trap is using the sizeof(a)/sizeof(a[0]) idiom inside a callee, where it silently gives 8/4 = 2 instead of 10.