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 |
WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH
how we separate the cobol cics statements from cobol&cics programming?
What is the difference between a DYNAMIC and STATIC call in COBOL?
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.
What is COMP-1? COMP-2?
suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.
i have a variable block which is used in my cobol program as input file having records of 4080 after compilation while runing the program im getiing file attribut mismatch and it is saying tht the record length of the file is 4084 can any one knw the answer how to reslove it ?
What is the difference between SEARCH and SEARCH ALL?
What should be the sorting order for SEARCH ALL?
Difference between file status codes 02 and 22.... since both are for duplicate key detection.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?