If the variable i has been declared in global, then the address of 'i' will be in the data section. If it is a local or auto variable, then the address will be in stack.

Next, 'j' is a local variable. Thus the address will always be in stack. However the value of j, i.e. the pointer, should point to a location in heap. It is the address returned by new/malloc().

About our authors: Team EQA

You have viewed 1 page out of 252. Your C learning is 0.00% complete. Login to check your learning progress.