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
Get step-by-step solutions from verified subject matter experts
