Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!