0. (a) Presume the following code has run: int x = 4; int* y = &x; int** z = &y; int a = 10; Write 4 different assignmen
Posted: Sun May 15, 2022 1:37 pm
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. (b) Presume the following code has run: int x = 4; int* const y = &x; int const **2 = &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 it is applied to?