Question: 1 . Pascal programming language supports bitpacked arrays. A bitpacked array can only contain binary digits. Originally, each bit is kept in a separate word
Pascal programming language supports bitpacked arrays. A bitpacked array can only contain binary digits. Originally, each bit is kept in a separate word in the memory as shown in the table given on the left. In a bitpacked array, a word bit memory cell can contain binary elements as shown in the table given on the right.
a Write the access function for calculating the byte address of an element of the original array shown on the left
b Write the access function for calculating the byte address of an element of a bitpacked array shown on the right
c What else do you need to do to read a bit of a bitpacked array?
d What else do you need to do to write a bit of a bitpacked array?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
