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 this work? it just comes out as the address of the pointer...
#include <stdio.h>
#include <stdlib.h>
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;
printf("\n y is equal to %d \n"),y;
printf("\n z is equal to %d \n"),x;