Question: IN CODE C: Task 1 : Intro to pointers ( 8 pt ) Must finish in class Pointers are a type of C variable that

IN CODE C: Task 1: Intro to pointers (8pt) Must finish in class
Pointers are a type of C variable that store the addresses of other variables. In this task, we will see how they. work and they importance.
Subtasks:
Create an integer variable and assign it any value.
Creat three different pointers. p1,p2,p3
Assign the address of x to p1.
Using only p1, make a copy of x in p2 and p3. The value store in p2 must always match with the value of x. The value store in p3 must have the value of x in the moment f the copy.
Change the value of x using p1.
Print the values for x,p1,p2p3
Explain why this happen.
 IN CODE C: Task 1: Intro to pointers (8pt) Must finish

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!