Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336
Associativity has no role to play unless the precedence of operator is same. ?->(Show Answer!)
Question Set

1. Associativity has no role to play unless the precedence of operator is same.



Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.01 pm
    Associativity is only needed when the operators in an expression have the same precedence. Usually + and - have the same precedence. Consider the expression 7 - 4 + 2. The result could be either (7 - 4) + 2 = 5 or 7 - (4 + 2) = 1. The former result corresponds to the case when + and - are left-associative, the latter to when + and - are right-associative. Usually the addition, subtraction, multiplication, and division operators are left-associative, while the exponentiation, assignment and conditional operators are right-associative. To prevent cases where operands would be associated with two operators, or no operator at all, operators with the same precedence must have the same associativity.
Show Similar Question And Answers
QA->Correct sentences among the following are: ) The tea is too hot that I cannot drink (2) Work hard, lest you should miss the chance (3) Unless you study well, you will fail (4) Unless you study well, you will pass....
QA->Stock Exchanges play a role in an economy how may it be termed?....
QA->Stock Exchanges play a role in an economy how may itbe termed?....
QA->If two bodies of different masses, initially at rest, are acted upon by the same force for the same time, then the both bodies acquire the same?....
QA->A, B and C start at the same time in the same direction to run around a circular stadium. A completes a round in 252 seconds, B in 308 seconds and c in 198 seconds, all starting at the same point. After what time will they again at the starting point ?....
MCQ->Associativity has no role to play unless the precedence of operator is same.....
MCQ->Which of the following statements are correct about the Bitwise & operator used in C#.NET? The & operator can be used to Invert a bit. The & operator can be used to put ON a bit. The & operator can be used to put OFF a bit. The & operator can be used to check whether a bit is ON. The & operator can be used to check whether a bit is OFF.....
MCQ->Examine carefully the following statements and answer the three items that follow: Out of four friends A, B, C and D, A and B play football and cricket, B and C play cricket and hockey, A and D play basketball and football, C and D play hockey and basketball. Who does not play hockey?....
MCQ->Which of the following statements are correct? The conditional operator (?:) returns one of two values depending on the value of a Boolean expression. The as operator in C#.NET is used to perform conversions between compatible reference types. The & operator is also used to declare pointer types and to dereference pointers. The -> operator combines pointer dereferencing and member access. In addition to being used to specify the order of operations in an expression, brackets [ ] are used to specify casts or type conversions.....
MCQ->In a class, three-fourth of the boys play football, one-half play cricket, one-fourth of those who play cricket do not play football.....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution