What’s the output of the following program? #include int e…
What’s the output of the following program? #include int efficiency = 2; void record_batch(int units) { int efficiency = 5; static int total = 0; total += units * efficiency; printf(“Total so far: %d\n”, total); } int main(void) { int morning_units = 2; record_batch(morning_units); efficiency = 3; int afternoon_units = 3; record_batch(afternoon_units); return 0; }
Read Details