rustic-sysy/sysy_sets/34_arr_expr_len.sy

12 lines
183 B
Plaintext
Executable File

const int N = -1;
int arr[N + 2 * 4 - 99 / 99] = {1, 2, 33, 4, 5, 6};
int main() {
int i = 0, sum = 0;
while (i < 6) {
sum = sum + arr[i];
i = i + 1;
}
return sum;
}