Recent questions tagged operator-precedence

3 votes
5 answers
2
Why is the output of the below program 36? int main(){ int a = 1; int b = ++a * ++a * ++a; printf("%d", b ); ​​​​ return 0; }
5 votes
2 answers
3
What will be the output of the following code? _______ #include <stdio.h int main(){ char val=250; int ans; ans= val+ !val + ~val + ++val; printf("%d", ans); return 0; }
0 votes
3 answers
5
Ans is a,b,d
3 votes
2 answers
8
Which of the following is the correct order of evaluation for the below expression? $z=x+y^*z/4\%2-1$$^*/\%+-=$$=^*/\%+-$$/^*\%-+=$$^*\% /-+=$
1 votes
3 answers
11
Which operator has higher priority between *and / in any expression how to evaluate them
0 votes
1 answer
13
0 votes
1 answer
16
2 votes
3 answers
18
If I have the grammar :E->E*F | F+E |FF->id ,Now here although + and * are defined at the same level , with different associativity but this grammar produces 2 different ...
1 votes
0 answers
20
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?
3 votes
1 answer
21
2 votes
1 answer
22
someone please explain how to draw operator precedence table to solve this question.
0 votes
1 answer
23