Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Memory Allocation (Reminder assume an TM4C123 is the target hardware unless othe

ID: 3882439 • Letter: M

Question

Memory Allocation (Reminder assume an TM4C123 is the target hardware unless otherwise specified)

a.For each declaration indicate how many bytes will be allocated in memory (5 pts)

i)                          short apple[10];  

ii)                         char my_oranges[100];

iii)                        int sensor_readings[100];

iv)                        long long class_grades[40];

v)                        signed short scan_data[20][20];

Question 2 (10 pts): Memory Allocation (Reminder assume an TM4C123 is the target hardware unless otherwise specified) a. For each declaration indicate how many bytes will be allocated in memory (5 pts) short apple [10]: l) shar my oranges [1001: iii)- int sensor readings100 long long class .qrades 40]: V) signed short scan data[201 (20

Explanation / Answer

i) 2 short apple[10];

ii) 400 char my_oranges[100];

iii) 400 int sensor_readings[100];

iv) 280 long long class_grades[40];

v) 2000 signed short scan_data[20][20];