Answer:
value holds: 6
More Practice
Here is another program fragment:
int extra; extra = 5;
The assignment statement is correct. It matches the syntax:
variableName = expression;
The
expression is the literal 5.
No calculation needs to be done.
But the assignment statement still takes two steps.
The first step gets the 5:
The second step puts the 5 in the variable:
QUESTION 14:
How long will the variable hold the value 5?