All pastes #624309 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-07-18 05:33 UTC
rendered paste body
int sum(/* fill in this blank*/ ) {
    int temp = 0;
    for (int i(0); i < sizeof(a)/sizeof(*a); ++i) {
        temp += a[i];
    }
    return temp;
}


Fill in the blank so that this call will succeed:

int array[10];
result = sum(array)