Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged operator-precedence
0
votes
0
answers
1
Bitwise Operator - C Programming
Problem Statement: Class teacher to IX-C wants to store whether a particular student has passed in exams. The class has a strength of $32$ students. Their roll numbers lie in the range: $[1, 32]$. The teacher used bits of an integer to store ... Bitwise OR (|) operator and count number of set bits d. Apply Bitwise AND (&) operator and count number of set bits
Problem Statement: Class teacher to IX-C wants to store whether a particular student has passed in exams. The class has a strength of $32$ students. Their roll numbers li...
Debargha Mitra Roy
110
views
Debargha Mitra Roy
asked
6 days
ago
Programming in C
programming-in-c
operator-precedence
boolean-algebra
+
–
3
votes
5
answers
2
C/C++ operator precedence
Why is the output of the below program 36? int main(){ int a = 1; int b = ++a * ++a * ++a; printf("%d", b ); return 0; }
Why is the output of the below program 36? int main(){ int a = 1; int b = ++a * ++a * ++a; printf("%d", b ); return 0; }
arpit.bagri
1.1k
views
arpit.bagri
asked
Aug 6, 2023
Programming in C
programming-in-c
operator-precedence
+
–
5
votes
2
answers
3
Gate@Zeal Workbook - C programming
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; }
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; }
saurabh0709
1.2k
views
saurabh0709
asked
Aug 1, 2023
Programming in C
zeal
programming-in-c
operator-precedence
+
–
0
votes
0
answers
4
Calcutta University Btech CSE Question Paper 4th Endsem
(a) Draw the precedence graph with the following precedence relation: S1→ S2; S1→ S3; S1→ S4; S2 → S5; S3→ S5; S4 → S6; S5 → S6 Now suppose that we add the edge (S2, S4) to the graph. (i) Can this new precedence ... statement? If so, show how, if not, explain why? (ii) How can this precedence graph be expressed if semaphores are also used?
(a) Draw the precedence graph with the following precedence relation: S1→ S2; S1→ S3; S1→ S4; S2 → S5; S3→ S5; S4 → S6; S5 → S6 Now suppose that we add the ...
sikkaBrown
324
views
sikkaBrown
asked
Jun 10, 2023
Operating System
operating-system
non-gate
operator-precedence
+
–
0
votes
3
answers
5
Test Series 2022
Ans is a,b,d
Ans is a,b,d
SKMAKM
489
views
SKMAKM
asked
Jul 24, 2022
Compiler Design
operator-precedence
+
–
1
votes
2
answers
6
#compiler-design
Which of the following statements are true. Please give a detailed explanation. 1) If the given grammar is not operator grammar then we can’t design an operator precedence table and there doesn’t exist an operator precedence parser. 2) If the given grammar is operator grammar then it is guaranteed that there exists an operator precedence parser.
Which of the following statements are true. Please give a detailed explanation.1) If the given grammar is not operator grammar then we can’t design an operator precede...
Crackca
781
views
Crackca
asked
Sep 19, 2021
Compiler Design
compiler-design
operator-grammar
operator-precedence
+
–
0
votes
2
answers
7
NIELIT 2017 DEC Scientific Assistant A - Section B: 59
The expression $5-2-3*5 – 2$ will evaluate to $18$, if : $‘ – ‘$ is left associative and $‘*‘$ has precedence over $‘ – ‘$ $‘ – ‘$ is right associative and $‘*‘$ has precedence over $‘ – ‘$ $‘ – ‘$ is right associative and $‘ – ‘$ has precedence over $‘*‘$ $‘ – ‘$ is left associative and $‘ – ‘$ has precedence over $‘*‘$
The expression $5-2-3*5 – 2$ will evaluate to $18$, if :$‘ – ‘$ is left associative and $‘*‘$ has precedence over $‘ – ‘$$‘ – ‘$ is right associ...
admin
2.0k
views
admin
asked
Mar 31, 2020
DS
nielit2017dec-assistanta
data-structures
operator-precedence
+
–
3
votes
2
answers
8
NIELIT 2016 DEC Scientist B (IT) - Section B: 17
Which of the following is the correct order of evaluation for the below expression? $z=x+y^*z/4\%2-1$ $^*/\%+-=$ $=^*/\%+-$ $/^*\%-+=$ $^*\% /-+=$
Which of the following is the correct order of evaluation for the below expression? $z=x+y^*z/4\%2-1$$^*/\%+-=$$=^*/\%+-$$/^*\%-+=$$^*\% /-+=$
admin
2.5k
views
admin
asked
Mar 31, 2020
DS
nielit2016dec-scientistb-it
data-structures
operator-precedence
stack
+
–
2
votes
1
answer
9
NIELIT 2017 July Scientist B (IT) - Section B: 57
If an SQL query involves NOT,AND,OR with no parenthesis NOT will be evaluated first; AND will be evaluated second; OR will be evaluated last. NOT will be evaluated first; OR will be evaluated second; AND will be evaluated ... first; OR will be evaluated second;NOT will be evaluated last. The order of occurrence determines the order of evaluation.
If an SQL query involves NOT,AND,OR with no parenthesisNOT will be evaluated first; AND will be evaluated second; OR will be evaluated last.NOT will be evaluated first; O...
admin
2.1k
views
admin
asked
Mar 30, 2020
Databases
nielit2017july-scientistb-it
databases
sql
operator-precedence
+
–
1
votes
5
answers
10
UGC NET CSE | December 2004 | Part 2 | Question: 13
What is the value of the arithmetic expression (Written in C) $2*3/4-3/4*2$ $0$ $1$ $1.5$ None of these
What is the value of the arithmetic expression (Written in C)$2*3/4-3/4*2$$0$$1$$1.5$None of these
go_editor
1.5k
views
go_editor
asked
Mar 26, 2020
Programming in C
ugcnetcse-dec2004-paper2
programming-in-c
expression-evaluation
operator-precedence
+
–
1
votes
3
answers
11
Subject Topic- Programming & DS
Which operator has higher priority between *and / in any expression how to evaluate them
Which operator has higher priority between *and / in any expression how to evaluate them
Ram Swaroop
409
views
Ram Swaroop
asked
Dec 18, 2018
Programming in C
operator-precedence
programming-in-c
+
–
0
votes
1
answer
12
TANCET 2016 CD
Balaji Jegan
307
views
Balaji Jegan
asked
Oct 23, 2018
Compiler Design
tancet
compiler-design
parsing
operator-grammar
operator-precedence
+
–
0
votes
1
answer
13
C basic concept
Vaishnavi01
546
views
Vaishnavi01
asked
Sep 3, 2018
Programming in C
programming
operator-precedence
+
–
0
votes
1
answer
14
Associvity and precedence
Deepalitrapti
461
views
Deepalitrapti
asked
Aug 24, 2018
Compiler Design
compiler-design
expression-evaluation
operator-precedence
+
–
1
votes
1
answer
15
Ace Test Series: Programming - Ternary Operator
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
Let "if x then y else z" denote the expression and this expression can be represented ad "?xyz" using ternary prefix operatorthe prefix operator for the following express...
Kalpataru Bose
501
views
Kalpataru Bose
asked
Jul 27, 2018
Programming in C
ace-test-series
programming
operator-precedence
+
–
0
votes
1
answer
16
Operator precedence parser
What is the difference between operator grammar and operator precedence grammar?
What is the difference between operator grammar and operator precedence grammar?
saumya mishra
2.2k
views
saumya mishra
asked
Jun 15, 2018
Compiler Design
compiler-design
operator-grammar
operator-precedence
+
–
0
votes
0
answers
17
C programming
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/
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...
Abhijit Sen 4
988
views
Abhijit Sen 4
asked
May 7, 2018
Programming in C
programming-in-c
operator-precedence
+
–
2
votes
3
answers
18
Is it always true that operators defined at the same level in the production rule, have same precedence ?
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 ...
radha gogia
1.2k
views
radha gogia
asked
Mar 19, 2018
Compiler Design
compiler-design
operator-grammar
operator-precedence
+
–
1
votes
2
answers
19
Ace test series
sm
499
views
sm
asked
Jan 3, 2018
Compiler Design
compiler-design
operator-precedence
expression-evaluation
numerical-answers
ace-test-series
+
–
1
votes
0
answers
20
#Testbook#Compiler#Precedence
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?
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?
dark.hacker.beyhadh
342
views
dark.hacker.beyhadh
asked
Dec 29, 2017
Compiler Design
operator-precedence
+
–
3
votes
1
answer
21
left recursive- self
Is operator precedence parser the only parser that accepts left recursive grammar?
Is operator precedence parser the only parser that accepts left recursive grammar?
A_i_$_h
932
views
A_i_$_h
asked
Nov 13, 2017
Compiler Design
compiler-design
operator-grammar
operator-precedence
descriptive
+
–
2
votes
1
answer
22
operator grammer
someone please explain how to draw operator precedence table to solve this question.
someone please explain how to draw operator precedence table to solve this question.
arch
1.4k
views
arch
asked
Nov 7, 2017
Compiler Design
compiler-design
operator-grammar
operator-precedence
test-series
+
–
0
votes
1
answer
23
Operator Precedence
E → E + E | E * E | ( E ) | id What will be operator precedence for above grammar.Is precedence differs due to ambiguity
E → E + E | E * E | ( E ) | idWhat will be operator precedence for above grammar.Is precedence differs due to ambiguity
jatin khachane 1
497
views
jatin khachane 1
asked
Jun 7, 2017
Compiler Design
compiler-design
operator-grammar
operator-precedence
ambiguous-grammar
descriptive
+
–
0
votes
1
answer
24
compiler
ukn
392
views
ukn
asked
Jan 19, 2017
Compiler Design
compiler-design
grammar
operator-grammar
operator-precedence
ace-test-series
+
–
Page:
1
2
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register