I'm not too sure of how memory allocation works. Correct me if I'm wrong:
When the code for a variable declaration is run, the program stores the address of an unnused location in memory in a data table. When the value held by the variable is called for, the program refers back to the data table for the address of the variable contents and then retrieves the contents from the memory location.
Is this true?
Is this only for object oriented programming?
Is there an intermediate "variable allocation table"?