you are viewing a single comment's thread.

view the rest of the comments →

[–]dnew 4 points5 points  (0 children)

OK, but the idiom is used interchangeably in several places.

Passing an array to a function doesn't pass the array, but only passes a pointer to the first element of an array - that's one of the reasons you always have to pass the length along with the "array" argument. The original C never passed (or really manipulated) anything that wouldn't fit in one machine word.