#include <iostream>
using namespace std;


void callMe(int j) {

        static int i;

        ++i;
        ++j;
	printf("Loop: %d\n", i);

	printf("i memory location: %p\n", &i);
	printf("j memory location: %p\n", &j);
	
        printf("\n");

	if ( i < 10 )
		callMe(j);

        printf("Returning from loop %d\n", j);        
}

int main() {

	callMe(0);
        printf("Next\n");
 	callMe(0);

	return 0;

}