Answers for ""write code to change the value of a pointer. write code to change the value to which the pointer points""

0

"write code to change the value of a pointer. write code to change the value to which the pointer points"

int a = 0, b = 1;
int *p1 = &a, *p2 = p1;

// change the value of a pointer.
p1 = &b;
// change the value to which the pointer points
*p2 = b;
Posted by: Guest on November-11-2020

Code answers related to ""write code to change the value of a pointer. write code to change the value to which the pointer points""

Browse Popular Code Answers by Language