Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions