0. (a) Presume the following code has run: int x = 4; int* y = &x; int** z = &y; int a = 10; Write 4 different assignmen
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
0. (a) Presume the following code has run: int x = 4; int* y = &x; int** z = &y; int a = 10; Write 4 different assignmen
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?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!