At the following code int x 10 int iptr 87 What will be di
At the following code int x = 10; int iptr = 87; What will be display if you send the expression iptr to cout? What happens if you send the expression prt to cout? Look at the following structure declaration. Write the statement that a point structure variable maned center 20 to x member of the center 30 to y member of the center the content of the x and y member of the center AC++ decimation codes below. and the memory map shows the following; 
Solution
1) The first cout will display 10
The second cout will display the address.
2) struct point
{
int x;
int y;
};
a) struct point center;
b) center.x=20;
c) center.y=30;
d) cout<<center.x<<endl;
cout<<center.y<<endl;
4) &p will return 2000
p will return 5000
*p will return garbage value
&x will return 5000
x will return garbage value
b)
&p will return 2000
p will return 5000
*p will return 50
&x will return 5000
x will 50
b)
&p will return 2000
p will return 5000
*p will return 50
&x will return 5000
x will 50
d)
&p will return 2000
p will return 5000
*p will return 38
&x will return 5000
x will 50

