Exit C6030-042 Developing with IBM Enterprise PL/I
Question 1 of 5
0% complete
Q1 Single choice

Input to a SORT routine requires the starting position of each field to be sorted. Which of the following calculates a value of 5 for field B?
DCL 1 S,
2 A CHAR(4),
2 B BIN FIXED(31);

  • A

    POINTERDIFF(ADDR(S), ADDR(S.B))

  • B

    POINTERDIFF(ADDR(S.B), ADDR(S))

  • C

    POINTERDIFF(ADDR(S.B),ADDR(S)) + 1

  • D

    POINTERDIFF(ADDR(S), ADDR(S.B)) + 1

Previous Next