While using the sizeof() function, I’ve learned that the size of the pointer is 8 bytes, while the size of the int value is 4 bytes.
This doesn’t make sense to me.
I’m thinking that the pointer places to a memory address, while the int is a variable which holds the value (at that point in time, depending on what part of the stack we are in.) Shouldn’t the value of the variable held in memory be larger, while the address should be a constant, depending on the memory size available in the computer?
What am I missing?