The hierarchy of the execution of logical operators is
(a) NOT AND OR
(b) AND OR NOT
(c) OR AND NOT
(d) OR NOT AND
Answers were Sorted based on User's Feedback
Answer / srinivas.dappili
Hi Santhi,
This is good Question.
THE ANS: IS NOT AND OR.
I am listing precedence order and also the link where u can
Found the relevant details
The operators and their precedence order from highest to
lowest are:
• Navigation operator ( . )
• Arithmetic operators in precedence order:
o + - unary
o * / multiply, divide
o + - add, subtract
• Comparison operators: =, >, <, >=, <=, <>(not equal)
• Logical operator NOT
• Logical operator AND
• Logical operator OR
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/cque_express.html
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / milan kumar
Hierarchy is NOT,AND,OR.hierachy is a).however i'm not sure
wheather compiler will treat it in order they present(most
probable) or will follow the hierarchy if all logical
operators are present in one statement.if i'm wrong plz
scrutinize it..plz post your answer if any one 've tried it
already.....it's a smart question...
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / venkata revanth arla
not,and ,nor according to the precedence order
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we move X(9) to 9(9). If yes what are the ways for doing this?
What is "Call by content" and "call by reference"?
How to increase the logical record length of existing PS file?
what is mainframe? what is the mainframe software ? what is use in s/w field?
how do you reference the variable block file formats from cobol programs
Can anyone please give the example of Inline Perform.
What is the different between index and subscript?
can we display comp-3 variables. if we want to display what we have to do . give me one example
how do u list the abended jobs?
How to execute a set of JCL statements from a COBOL program?
How can you pass values from COBOL program to non-COBOL programs?
What are declaratives and what are their uses in cobol?