Ch. 2.12: More about Variable Assignments and Initialization Flashcards
1
Q
What is an assignment statement?
A
A value is stored in a variable.
2
Q
What is an assignment operator?
A
Operators perform operations on data. E.g. “=”
3
Q
What is an operand?
A
Data operators work with. E.g. “unitsSold” and “12”
4
Q
What is an lvalue?
A
A value that appears on the left side of an assignment operator. Something that identifies a place in memory whose contents may be changed.
5
Q
What is an rvalue?
A
The value on the right of the operator. Any expression that has a value.
6
Q
What is initialization?
A
Assigning values to variables.