void ex2(int a[5]) { int sum; int i; // lots of other declarations // lots of statements sum = 0; for (i = 0; i < 5; ++i) sum += a[i]; // lots of statements printf("sum=%d\n", sum); }