Question: Consider the following program in C: void foo() { int i; printf(%d , i++); } int main() { int j; for (j = 1; j
Consider the following program in C: void foo() { int i; printf("%d ", i++); } int main() { int j; for (j = 1; j <= 10; j++) foo(); } Check out the output in your system and suggest an explanation in terms of activation records in the stack.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
