Cobol Question: Download Questions PDF
Why do we code S9 (4) comp. Inspite of knowing comp-3 will occupy less space?
![Cobol Interview Answer Cobol Interview Question](https://globalguideline.com/public/images/interview/18.png)
Answer:
Here s9(4)comp is small integer ,so two words equal to 1 byte so totally it will occupy 2 bytes(4 words).here in s9(4) comp-3 as one word is equal to 12 byte.4 words equal to 2 bytes and sign will occupy 12 byte so totally it will occupy 3 bytes.
Download Cobol Interview Questions And Answers
PDF
Previous Question | Next Question |
How do you differentiate between COBOL and COBOL-II? | What is the difference between a binary search and a sequential search what are the pertinent COBOL? |