Question
Problem 2) Suppose that the following bytes were in RAM at the addresses shown and that the characters in array start at 0x00001800. Recall that
Problem 2)
Suppose that the following bytes were in RAM at the addresses shown and that the characters in array start at 0x00001800.
Recall that Microblaze is a little-endian device.
0x00001800 | 0x12 |
0x00001801 | 0x4F |
0x00001802 | 0xEF |
0x00001803 | 0xC6 |
0x00001804 | 0xA4 |
0x00001805 | 0xFE |
0x00001806 | 0x03 |
0x00001807 | 0x9D |
0x00001808 | 0x99 |
0x00001809 | 0x08 |
0x0000180a | 0x1E |
0x0000180b | 0x23 |
0x0000180c | 0xF2 |
0x0000180d | 0xAC |
0x0000180e | 0x7F |
0x0000180f | 0x57 |
array[0] unsigned char array[16];
. char *charptr;
.
.
If charptr = &array[0x02], what is the value of *charptr?
______________
If charptr = &array[0x0c], what is the value of *charptr?
__________________________
If charptr = &array[0x02], what is the value of charptr++?
____________________________
If charptr = &array[0x0c], what is the value of charptr++?
_____________________________
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started