We are not accessing variable j after exiting from function.
Parameter is passed as reference.
Address of a is passed to the function.
Inside the function,value nof j is copied to the address of a.
After exiting drom function, local variable j is deleted, but its value is already stored in address of a.
Thats how we accessed the value