search
Log In
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
0 votes
328 views
the order in which operands  are evaluated in an expression in predictable if th operator is

a) *        b)  +        c)%      d)&&
in Object Oriented Programming 328 views

1 Answer

1 vote
 
Best answer
+ or * is evaluated first depending upon the left to right assosciativity. Next % is evaluated and at last && is evaluated.

selected by

Related questions

1 vote
0 answers
1
98 views
On overloading pre increment and post increment why compiler taking dummy value only for post increment and not in pre increment
asked Apr 6, 2018 in Object Oriented Programming kd..... 98 views
2 votes
1 answer
2
171 views
Is it possible to have a function call on the left hand side of the equality operator? a. No, because you can only have variables on the left side b. Yes, but only in case of functions that do not return anything c. Yes, but only in case of functions that return a pointer value d. Yes, but only in case of functions that return a reference value.
asked Feb 24, 2017 in Object Oriented Programming Meenakshi Sharma 171 views
1 vote
0 answers
3
524 views
which of the following statements are true for operator overloading in C++? a. The * operator can be overloaded to perform division b. The * operator can be overloaded to perform assignment c. ** can be overloaded to perform "to the power of" d. Operators can be overloaded only inside classes
asked Feb 24, 2017 in Object Oriented Programming Meenakshi Sharma 524 views
1 vote
2 answers
4
262 views
In operator precedence parsing we have the rule that production cannot have two adjacent non-terminals or an epsilon production, so this production, S--> ab is allowed but not S--> AB, A->a and B->b, though they are giving us the same output. Why so?
asked Jun 14, 2019 in Compiler Design Hirak 262 views
...