c - Calculating the sum of integers in an array - Stack Overflow

c - Calculating the sum of integers in an array - Stack Overflow

瀏覽:1464
日期:2025-12-10
int main(void) { int array[10]; int i; int sum = 0; for ( i = 0; i < 11; i++){ scanf("%d", ... You have 10 elements in the array, numbered 0 - 9. You are overflowing the ......看更多