Computer Fundamentals - Engineering

Q1:

Which memory stores the values of variables.

A SAM

B ROM

C RAM

D PROM

E None of the above

ANS:C - RAM

Variables are usually stored in RAM. This is either on the heap (e.g. All global variables will usually go there) or on the stack (all variables declared within a method/function usually go there). Stack and Heap are both RAM, just different locations.