EECS 280 Lecture Notes - Lecture 1: Call Stack
Document Summary
Machines make a physical location where they store information; like in the code. There is an actual location, a transistor, with that information in the machine. Variable = refers to an object in memory. Scope = the area of code where it can be used. Declaration = introduces a name and begins a scope. Object = piece of data in memory; it lives in an address. Types of storage duration in c++: static, automatic and dynamic. Variables are different from objects. (check table in lecture slide, lecture 1). Operations in c++ work with values of objects in memory; setting "equal to" means ma. When we use an object in reference, we give it another name. Int x = 24; int z = 4; Int &y = x; //this is just saying that x and y both refer to the value 24. So far: x and y = 24, and z = 4.