I am trying to understand the process of declaration and assignment of a primitive type at the back stage.
1) int i;
2) i = 3;
for 1), on the memory stack, it assigns a space for storing an int type value named i for 2), it assigns the value 3 to the space preserved above
Is there memory address there? From my impression, memory address is always associated with the objects on the heap?
Thanks!