answersLogoWhite

0

you have to undo what ever's being done to the variable :p

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
JudyJudy
Simplicity is my specialty.
Chat with Judy
RossRoss
Every question is just a happy little opportunity.
Chat with Ross

Add your answer:

Earn +20 pts
Q: What must you do to evaluate a variable expression?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

To evaluate a variable you must values for the variable and then calculate the result?

No. To evaluate a variable, you simply take its value. When you assign a value to a variable, the evaluation of that operation is the value of the variable after assignment. There is no calculation required to evaluate a variable, unless that calculation is part of the right-hand operand of an assignment operation, in which case the calculation is evaluated first and the result of that evaluation (the value) is then assigned to the variable which is then evaluated.


Define an expression that evaluates to true when i equals j?

In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.In Java, or C, the expression is simply:i == jIf the two are equal, this expression will evaluate to true; if not, it will evaluate to false.


When you need to satisfy two or more criteria to initiate an event in a program you must make sure that the second decision is made entirely independently of the first decision?

Evaluate the criteria before executing the conditional expression. In pseudocode:result1 = evaluate( criteria1 );result2 = evaluate( criteria2 );if( result1 && result2 ) initiate_event;Note that this is not the same as the following:if( evaluate( criteria1 ) && evaluate( criteria2 )) initiate_event;If the evaluation of criteria1 fails for any reason, then the whole expression fails and criteria2 is never evaluated. so if the evaluations must be done independently of each other, then they must be done prior to the conditional expression, storing the results for use in the conditional expression.


What is a kind of expression that has no variable?

A constant expression.


How do you Evaluate the expression 32-6 plus 5x4?

46