Question: You are writing code for an cmbodded system which has minimal mcmory. You want to oncode a bunch of information in as small a ficld

You are writing code for an cmbodded system which has minimal mcmory. You want to
oncode a bunch of information in as small a ficld as possiblc. Your samplc has 32 different
of storing this data?
nttributes, Each nttributc is eithcr present of not (cs/No). What would be the most cfficient way
specific bit.
a) would create a 32 bit unsigned integer. Each yes/no attribute would be assigned to a
specific bit.
b) Iwould create a 16 bit unsigned integer. Each yes/no atribute would be assigned 1o a
c) I would create a process to do the job. Each yes/no autribute would be assigned to a
specific bit.
d) Memory chunk can be declared and shared. Each yes/no attribute would be assigned to a
specific bit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!