UNIVERSITY AT BUFFALO, THE STATE UNIVERSITY OF NEW YORK
The Department of Computer Science & Engineering
STUART C. SHAPIRO
: CSE 115 C
CSE 115
Introduction To Computer Science for Majors I
Lecture C
Lecture Notes #6
Stuart C. Shapiro
Spring, 2007
Variables
A variable can hold a reference to an object.
A variable is assigned a value via an assignment statement.
variable
=
expression
;
A variable is a symbolic address in memory.
A reference to an object is the address of that object's representation in memory.
Copyright © 2007 by Stuart C. Shapiro. All rights reserved.
Last modified: Sun Sep 23 15:24:49 EDT 2007
Stuart C. Shapiro
<
shapiro@cse.buffalo.edu
>