Given the following code, what is the value of RESULT?
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++
D RESULT S 5 0
C EVAL RESULT = (2 + 3 * 2) ** 2 / 2
Answers were Sorted based on User's Feedback
Answer / anuj
Agreed.. Should be 32.. see below
1. RESULT = (2 + 3 * 2) ** 2 / 2
2. RESULT = (8) ** 2 / 2
3. RESULT = 64 / 2 = 32.
Thanks.
Is This Answer Correct ? | 17 Yes | 0 No |
What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.
what is the necessary keyword needed to scroll subfile records?
wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?
how do I do concatenation in rpg iv, like I do in cl?
How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?
CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?
How to read a record from file where there is multiple record occurrence is available?
What is the purpose of PUTOVR keyword?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
How can you delete records form a file in rpg without using "Delete" OPCODE?
how can you display specific subfile page on the screen in unequal subfile?
What is the significance of UDATE?