# Find the output of the following program

Provide the output of the following program:

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #include int main() { int val[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; int sum = 0; int i; for( val[4] = 0; val[4] < 10; val[4]++) { val[val[4]] = val[4] * 2; } for( i = 0; i < 10; i++) { sum = sum + val[i]; } printf( "%d", sum); } 

PS: Do not use your C environment or computer.

×