Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One cost-effective method of holding two identical versions in memory without excessive copying is by using pointers. Pointers are variables that hold the memory address of another variable. Both variables can point to the same memory location, allowing the identical versions to be stored in the same memory space. This method saves memory and reduces the need for excessive copying. Any changes made to one variable will also be reflected in the other variable.