answersLogoWhite

0

Constant values are expressions as well, still I don't think they are so hard to evaluate... well, in this case it is twelve

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake

Add your answer:

Earn +20 pts
Q: Evaluate the expression 12
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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.


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

46


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 must you do to evaluate a variable expression?

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


Evaluate the following postfix expression using stack in C 1 2 3 1 uparrow uparrow 4 5 6star 7star?

Evaluation of a postfix expression is done in the following manner:Scan the expression from the front.1) If it is a number then push it into the stack.2) If it is an operator, then pop two numbers from the stack and then evaluate them using the operator and push it back into the stack.Now consider the given expression. I have presented the sequence in which the expression will be evaluated by using braces.Note - I am using '!' symbol for uparrow1231!!-456*7*-->12(3!1)!-456*7*-->1(2!(3!1))-456*7*-->(1-(2!(3!1)))56*7*-->(1-(2!(3!1)))(5*6)7*-->((1-(2!(3!1)))-((5*6)*7))This will be your final result.