What is the size of variable S9(18)V99 COMP-3
Would this give any issues while compiling?
Is S9(18)V99 same as S9(18) ?
Interview question
"; ; ; ;
To uncompress:
If total of all digits is EVEN, then:
18v99 = 20 digits (EVEN)
20 / 2 + 1 = 11 (in storage/file)
If total of all digits is ODD, then:
19v99 = 21 digits (ODD)
21 + 1 / 2 = 11 (in storage/file)
Would this give any issues while compiling?
Possibly - Read in the Language Reference manual about the limitations for that compiler. Also check the Options for the compile.
Is S9(18)V99 same as S9(18) ?
No. One is 20 digits, the other is 18.