answersLogoWhite

0


Best Answer

Each operator has a certain precedence level, usually some numeric value. As you parse the expression, you compare the precedence of each operator with the precedence of the last operator, and you either generate code or you push the operator and its operand(s) on two stacks.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you compare precedence of operators in programming of conversion of infix to postfix?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does compare mean in programming?

It means exactly that. You compare values, using comparison operators such as '==', '<', and '>' (equal to, less than, and greater than respectively). For example; if (value1 > value2) { //Do something }


What is PHP operators?

PHP Operators are syntactical constructs that assign, compare, or modify a value. There are bitwise operators, arithmetic operators, boolean operators, assignment operators, and concatenation operators. There are also a wide variety of functions and class methods which simulate or utilize these operations.


What is a relational operators defined in c?

to compare the two quantities


Does C allows you to use equality operators to compare strings?

Yes, it does.


A symbol in Excel used to compare values is called?

comparison operators


Difference between relational and logical operators?

Logical operators don't Compare values they combine Boolean values and produce a Boolean result. Examples of logical operators are && (and), , (or), ! (not). If you have two Boolean values and you combined them with the && operator the result will be (TRUE) only if both values were (TRUE). Relational operators compare two values and produce a Boolean result. Most of the time we use logical operators to combine the results of two or more comparison expressions that use relational operators.


How do you compare two numbers without using any operators in c?

You cannot compare 2 numbers without using relational operators. Certainly, you could subtract them, but you still need to test the result, and that is a relational operator in itself.


What are relational and assignment operators?

Is there a specific language that you're after? The list may vary between them, but I'll try to include them all. = (Equal To - in BASIC) <> (Not Equal To - in BASIC) == (Equal Value - Conventional) === (Equal Value and Type - No implicit type conversion) != (Not Equal - Conventional) !== (Different Value or Type - No implicit type conversion) > (Greater Than) < (Less Than) >= (Greater Than or Equal To) <= (Less Than or Equal To) I believe some languages also use /= as a Not Equal operator.


How do you compare 2 numbers without using relational operators in c?

using max function


What is a operator in access?

It is any of the operators used to compare things to see if they are equal or greater than to less than etc. So ones like > < = are all comparison operators.


Can I take suggestions for me to compare car rental prices?

You can always check the prices on the website with the prices that hotels and tour operators published. It doesn't hurt to send e mail to tour operators for a quote.


What is micro programming compare hard byte and micro sequencer control unit?

compare hard byte and micro sequencer control unit