Question: Write the following pointer declarations that include a const qualification: 1. Write a declaration for a pointer to a constant object. Assume the object is

Write the following pointer declarations that include a const qualification:

1. Write a declaration for a pointer to a constant object. Assume the object is of type student.
2. Write a declaration for a constant pointer to a non-constant object. Again, assume the object is of type student.
3. Write a declaration for a constant pointer to a constant object. The object will again be of type student.

Step by Step Solution

3.51 Rating (158 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 A Practical In Depth Guide C++ Questions!