Question: 0.a Presume the following code has run int x =4; int* y = &x; int** z = &y; int a = 10; Write 4 different

0.a Presume the following code has run

int x =4;

int* y = &x;

int** z = &y;

int a = 10;

Write 4 different assignment operations that set x equal to the value of a;

0.b Presume the following code has run

int x =4;

int* const y = &x;

int** const z = &y;

int a = 10;

Which of your assignments (if any) from 0.a are now invalid?

What does the const modifier do to each of the pointers its applied to?

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!