Question: Exercise (a) The short data type uses 16 bits to store numbers. Show how the decimal number 20000 would get stored in memory starting at

Exercise (a) The short data type uses 16 bits to store numbers. Show how the decimal number 20000 would get stored in memory starting at address A000 BA5C. Hint: Convert 20000 to binary and express as two bytes (use zero padding). Convert each byte to decimal to fill in the RHS of memory table. (b) The int data type uses 32 bits to store numbers. Show how the decimal number 20000 would ge stored in memory starting at address A000 BA5C (c) An array is a data structure that allows us to store a list of numbers in memory. Show what memory looks like if we store the following 3 numbers (each as int data type) in memory: 100, 200, 300 Hint: The maximum number that can go into the RHS of a memory location is 255
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
