If we consider the function
void sum(int* nums, size_t len) { int sum = 0; for(int i = 0; i < len; i++) sum += nums[i]; return sum; }