/* Local variable initialization. */ #include void f(void); //function prototype int main(void) { int i; for (i=0; i<10; i++) f(); //function invocation return 0; } void f(void) { int j = 10; printf("%d\n", j); j++; // this line has no lasting effect } /* Note: The value will be assigned to the local variable each time the block of code in which it is declared is entered. */