What is the Size of S9(18)V99 COMP-3

3 posts / 0 new
Last post
Anonymous
What is the Size of S9(18)V99 COMP-3

 

 

 

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
"; ; ; ;
Anonymous
For COMP-3

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)

Offline
Joined: 12/26/2011 - 06:34
COMP-3 Fields Questions

 

 

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.

Log in or register to post comments
Sponsored Listing