POINTERS ..C HELP - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.


leemarkpoleemarkpo Posts: 2Member
This is what I made but I cant make it do what I want
"Use pointer dereferencing on pointers to y and z to change the value of
variables y = 10, z = x."

How can i make z=x? ugh it just post the adress


int main(int argc, char *argv[])

int x, y, z;
int *p1, *p2, *p3;

p1= &x;
p2= &y;
p3= &z;

*p1= *p3;
*p2= 10;
*p3= x;

y is equal to %d
z is equal to %d

return 0;
Sign In or Register to comment.