Question: 1) look at the following code.double value = 29.7;double *ptr = &value;write a cout statement that uses the ptr vaiable to display the contents of

1) look at the following code.double value = 29.7;double *ptr = &value;write a cout statement that uses the ptr vaiable to display the contents of the value variable


2) look at the following array definitionint set [10];Write a statement using pointer notation that stores the valu 99 in set [7];


3) Write the definition of ptr, a pointerr to a constant int.


4)write athe definition of ptr, a constant pointer to an int.

Step by Step Solution

3.32 Rating (146 Votes )

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 Programming Questions!