Programming Languages
C
Subjective
Mar 16, 2013
Why do we code S9 (4) comp. Inspite of knowing comp-3 will occupy less space ?
Detailed Explanation
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 1/2 byte.4 words equal to 2 bytes and sign will occupy 1/2 byte so totally it will occupy 3 bytes.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts