How much memory to hold a pointer?

  • Thread starter Thread starter Scott M.
  • Start date Start date
S

Scott M.

How much memory is used to hold an object *reference* on the stack (not how
much memory is required for the object on the heap)?

Is it a standard size for all object references since it's really just a
pointer to a memory address?

-Scott
 
Scott M. said:
How much memory is used to hold an object *reference* on the stack (not
how much memory is required for the object on the heap)?

Is it a standard size for all object references since it's really just a
pointer to a memory address?

-Scott

Typically four bytes to hold an address.
 
Back
Top