# Recent questions tagged operator-precedence 1 vote
1
Which operator has higher priority between *and / in any expression how to evaluate them
2
1 vote
3
Let "if x then y else z" denote the expression and this expression can be represented ad "?xyz" using ternary prefix operator the prefix operator for the following expression is If a then if c-d then a+c else a*c else a+b A) ?-acd+ac?+ab+ac B) ?a?-cd+ac*ac+ab C)?a-cd?+ac*ac+ab D )none
4
Can someone explain why this is happening. I have found post increment has higher precedence than pre-increment . And Post increment is left associative and pre-increment is right associative. For the 1st printf it it is 5,6 but the 2nd printf it is 6,7 Why in post increment both statemet has differenet value. https://www.geeksforgeeks.org/c-operator-precedence-associativity/
1 vote
5
There is a loop when we will make tree and we wont be able to decide whether + or * has higher precedence.... HOW TO SOLVE IT?
6
the associativity of which of the following operators is Left to Right, in C++? 1) Unary Operator 2) Logical not 3) Array element access 4) addressof
7
What is the value of the arithmetic expression (Written in C) 2*3/423/4* 2 (A) 0 (B) 1 (C) 1.5 (D) None of the above
8
Consider the following left associative operators in decreasing order of precedence : - subtraction (highest precedence) * multiplication $exponentiation (lowest precedence) What is the result of the following expression ? 3 – 2 * 4$ | * 2** 3 $-61$ $64$ $512$ $4096$
9
The value of the following expression $(13 / 4 * 3) % 5 + 1$ is $5.75$ $2.95$ $1.4875$ $5$
10
$X - = Y + 1$ means $X = X – Y + 1$ $X = -X - Y - 1$ $X = -X + Y + 1$ $X= X - Y - 1$