Question: Assume you declared the following multi - dimensional array in C: unsigned char foo [ 2 ] [ 4 ] ; Which of the following

Assume you declared the following multi-dimensional array in C:
unsigned char foo[2][4];
Which of the following statements is/are true?
The second item in foo's block of memory is the element foo[0][1]
foo consumes 16 bytes of memory.
foo is stored in one contiguous block of memory
foo is stored as an object
foo consumes 8 bytes of memory.
The second item in foo's block of memory is the element foo[1][0]
 Assume you declared the following multi-dimensional array in C: unsigned char

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 Databases Questions!