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

Given the following code, which is the only valid way to convert Q to P?

DCL Q OFFSET;
DCL P POINTER;
DCLX CHAR(100)BASED;
DCL A AREA(6000);
ALLOC X SET(Q) IN(A);

  • A

    P = Q;

  • B

    P = POINTER(Q,A);

  • C

    P = POINTERVALUE(Q);

  • D

    P = ADDR(A) + Q;

Previous Next