Storage Space

What is the use and when do we are use comp variables (comp, comp1, comp2 and comp3)?

Showing Answers 1 - 1 of 1 Answers


  • Aug 18th, 2015

Only numeric data items can be specified as USAGE IS COMPUTATIONAL.

COMP-1:In this case the data item will be represented in one word in the floating point form the number is actually represented in hexadecimal format and is suitable for arithmetic operations.
COMP-1 takes 4 bytes of storage.

COMP-2:This is same as COMP-1, except that the data is represented internally in two words.

COMP-3:In this case the data is represented in the decimal form, but one digit takes half a byte

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions