Tute03 - 07s2 COMP1921 Wiki - 0 views
-
int sequence[], int numElements
-
Filius Fob on 07 Aug 07This is a very common pattern in C, since C arrays don't secretly store the array length with the array as in some other languages. Thus, whenever an array gets passed to a function, so too does the array length.
-
-
for (i = 1; i < numElements; i++) {
-
swap(&sequence[j], &sequence[j - 1])
- ...5 more annotations...