Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged operator-precedence
3
votes
5
answers
1
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; }
arpit.bagri
asked
in
Programming in C
Aug 6, 2023
by
arpit.bagri
1.1k
views
programming-in-c
operator-precedence
5
votes
2
answers
2
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; }
saurabh0709
asked
in
Programming in C
Aug 1, 2023
by
saurabh0709
1.1k
views
zeal
programming-in-c
operator-precedence
0
votes
0
answers
3
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?
sikkaBrown
asked
in
Operating System
Jun 10, 2023
by
sikkaBrown
315
views
operating-system
non-gate
operator-precedence
0
votes
3
answers
4
Test Series 2022
Ans is a,b,d
SKMAKM
asked
in
Compiler Design
Jul 24, 2022
by
SKMAKM
494
views
operator-precedence
1
vote
2
answers
5
#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.
Crackca
asked
in
Compiler Design
Sep 19, 2021
by
Crackca
764
views
compiler-design
operator-grammar
operator-precedence
0
votes
2
answers
6
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 $‘*‘$
admin
asked
in
DS
Mar 31, 2020
by
admin
1.9k
views
nielit2017dec-assistanta
data-structures
operator-precedence
3
votes
2
answers
7
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$ $^*/\%+-=$ $=^*/\%+-$ $/^*\%-+=$ $^*\% /-+=$
admin
asked
in
DS
Mar 31, 2020
by
admin
2.5k
views
nielit2016dec-scientistb-it
data-structures
operator-precedence
stack
2
votes
1
answer
8
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.
admin
asked
in
Databases
Mar 30, 2020
by
admin
2.1k
views
nielit2017july-scientistb-it
databases
sql
operator-precedence
1
vote
5
answers
9
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
go_editor
asked
in
Programming in C
Mar 26, 2020
by
go_editor
1.5k
views
ugcnetcse-dec2004-paper2
programming-in-c
expression-evaluation
operator-precedence
1
vote
3
answers
10
Subject Topic- Programming & DS
Which operator has higher priority between *and / in any expression how to evaluate them
Ram Swaroop
asked
in
Programming in C
Dec 18, 2018
by
Ram Swaroop
406
views
operator-precedence
programming-in-c
0
votes
1
answer
11
TANCET 2016 CD
Balaji Jegan
asked
in
Compiler Design
Oct 23, 2018
by
Balaji Jegan
304
views
tancet
compiler-design
parsing
operator-grammar
operator-precedence
0
votes
1
answer
12
C basic concept
Vaishnavi01
asked
in
Programming in C
Sep 3, 2018
by
Vaishnavi01
525
views
programming
operator-precedence
0
votes
1
answer
13
Associvity and precedence
Deepalitrapti
asked
in
Compiler Design
Aug 24, 2018
by
Deepalitrapti
457
views
compiler-design
expression-evaluation
operator-precedence
1
vote
1
answer
14
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
Kalpataru Bose
asked
in
Programming in C
Jul 27, 2018
by
Kalpataru Bose
507
views
ace-test-series
programming
operator-precedence
0
votes
1
answer
15
Operator precedence parser
What is the difference between operator grammar and operator precedence grammar?
saumya mishra
asked
in
Compiler Design
Jun 15, 2018
by
saumya mishra
2.2k
views
compiler-design
operator-grammar
operator-precedence
0
votes
0
answers
16
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/
Abhijit Sen 4
asked
in
Programming in C
May 7, 2018
by
Abhijit Sen 4
979
views
programming-in-c
operator-precedence
2
votes
3
answers
17
Is it always true that operators defined at the same level in the production rule, have same precedence ?
radha gogia
asked
in
Compiler Design
Mar 19, 2018
by
radha gogia
1.1k
views
compiler-design
operator-grammar
operator-precedence
1
vote
2
answers
18
Ace test series
sm
asked
in
Compiler Design
Jan 3, 2018
by
sm
484
views
compiler-design
operator-precedence
expression-evaluation
numerical-answers
ace-test-series
1
vote
0
answers
19
#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?
dark.hacker.beyhadh
asked
in
Compiler Design
Dec 29, 2017
by
dark.hacker.beyhadh
341
views
operator-precedence
3
votes
1
answer
20
left recursive- self
Is operator precedence parser the only parser that accepts left recursive grammar?
A_i_$_h
asked
in
Compiler Design
Nov 13, 2017
by
A_i_$_h
906
views
compiler-design
operator-grammar
operator-precedence
descriptive
2
votes
1
answer
21
operator grammer
someone please explain how to draw operator precedence table to solve this question.
arch
asked
in
Compiler Design
Nov 7, 2017
by
arch
1.4k
views
compiler-design
operator-grammar
operator-precedence
test-series
0
votes
1
answer
22
Operator Precedence
E → E + E | E * E | ( E ) | id What will be operator precedence for above grammar.Is precedence differs due to ambiguity
jatin khachane 1
asked
in
Compiler Design
Jun 7, 2017
by
jatin khachane 1
490
views
compiler-design
operator-grammar
operator-precedence
ambiguous-grammar
descriptive
0
votes
1
answer
23
compiler
ukn
asked
in
Compiler Design
Jan 19, 2017
by
ukn
394
views
compiler-design
grammar
operator-grammar
operator-precedence
ace-test-series
3
votes
1
answer
24
parsing
Consider the following operator grammar E->AaBcD A->bA|e B->bB|e D->eD|g Which of the following precedence relation is incorrect from the above grammar? Assume x<•y is used to represent x is having less precedence than y and in the expression x appears first and y appears next. a) a<•b b) c<•g c) a<•e d) c<•b
kirtikanwar
asked
in
Compiler Design
Jan 4, 2017
by
kirtikanwar
1.2k
views
compiler-design
parsing
operator-grammar
operator-precedence
Page:
1
2
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged operator-precedence
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...