Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

URGENT! c language Glvon a code as in Figuro 5 with the corresponding memory map in Figure 6. 1. #include 2. #include 3. 4. int

URGENT! c language
image text in transcribed
image text in transcribed
Glvon a code as in Figuro 5 with the corresponding memory map in Figure 6. 1. #include 2. #include 3. 4. int main (void) { 5. int a, *b, c = 10, d = 11, e = 12; 6. b= &c; 7. printf("%p%p ", &c, &d); 8. printf("%p %d ", b, *b); 9. b=b-1; W 10. printf("%p %d", b, *b); 11. return 0; 12. } Figure 5: Code depicting usage of pointers 3 4 5 6 7 8 9 A B D E F 1 2 11 10 12 0065FDEO 0065FDFO 0065FEOO 0065FE10 0065FE20 0065FE30 0065FE41 00 65 FE 08 F 5 7 B 8 A 6 9 CDE 4 5 1 3 0 N 11 10 12 0065FDEO 0065FDFO 0065FEOO 0065FE10 0065FE20 0065FE30 006SFE41 00 65 FE 08 d C Figure 6: Simplified memory map (a) List down the address for variables b, c, d, and o. Based on Figure 5. solve for the output expected in line 7 (b) [5 Marks) [5 Marks) (5 Marks) [5 Marks) (c) Based on Figure 5, solve for the output expected in line 8. (d) Based on Figure 5, solve for the output expected in line 10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions