Question: (20 Points) Given the following program, (a) trace the output by drawing the memory model as the program runs. (b) What does printf(%d , ptr2

 (20 Points) Given the following program, (a) trace the output by

(20 Points) Given the following program, (a) trace the output by drawing the memory model as the program runs. (b) What does printf("\%d ", ptr2 - ptr1) print in C/C++ ? \#include using namespace std; int main() float arr [3]={1.5,1.0,3.5}; float *ptr1; float *ptr2; ptr1 = darr[0]; ptr2 = ptr1 +2; printf ("x \&8X 8 ", arr, ptr1ptr2); system ("PAUSE"); return 0; output 3AFDC0 3 AFDC0 3 AFDC8 Press any key to continue... [

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!