Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Say you have a pointer int * p = &a , and that int a is at address 0 x 1 0 0 0 .

Say you have a pointer int* p = &a, and that int a is at address 0x1000. What's the value of p+4?
A: 0x1004
B: you shouldn't compute that -- that's asking for a segmentation fault
C: it depends on the size of an int on your system
D: 0x1020, since ints are 8 bytes on a 64-bit computer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+What is the most that you should pay to complete development?

Answered: 1 week ago