Multiple choice technology testing

The actual number of bytes occupied in the following declaration is: PIC 9(6)V99 COMP-3

  1. 8

  2. 4

  3. 5

  4. 6

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The declaration PIC 9(6)V99 COMP-3 represents 8 digits. In packed decimal (COMP-3) format, the formula for byte size is (N/2) + 1, rounded down. Thus, (8/2) + 1 equals 5 bytes.