Question: (1) Write statements to do the following: . Define a pointer type int_ptr for pointer variables that contain pointers to int variables. II. Declare
(1) Write statements to do the following: . Define a pointer type int_ptr for pointer variables that contain pointers to int variables. II. Declare p1 to be a pointer to an int. iii. Dynamically allocate an integer variable and store its address in p1. iv. Assign the value 23 to the variable that p1 is pointing to. V. Declare an int variable a. vi. Let p1 point to a. vii. Free the memory allocated to the variable that p1 is pointing to.
Step by Step Solution
There are 3 Steps involved in it
Heres how you can accomplish those tasks in C cpp include iostream int main i Define a po... View full answer
Get step-by-step solutions from verified subject matter experts
