Hello ccdare , I am not sure but i will try to help out. (if i got anything wrong please correct me anyone ). I think that all the variables such as int x=5; that you mentioned is stored in the ram . They also have a unique adress in the ram and you can access them . Their lifetime is untill the program is terminated.