Complete the code to declare a pointer to a pointer to an integer.
int x = 10; int *p = &x; int [1] = &p;
The declaration int **pp means pp is a pointer to a pointer to an integer.
Complete the code to assign the address of pointer p to pointer to pointer pp.
int x = 5; int *p = &x; int **pp; pp = [1];
pp = p; which is incorrect type.pp = *p; which dereferences p.To make pp point to p, assign pp = &p; because pp is a pointer to a pointer.
Fix the error in the code to correctly print the value of x using pointer to pointer pp.
int x = 20; int *p = &x; int **pp = &p; printf("%d\n", [1]);
*pp which gives pointer p, not value.pp directly which is a pointer to pointer.To get the value of x through pp, you need to dereference twice: **pp.
Fill both blanks to correctly change the value of x to 50 using pointer to pointer pp.
int x = 10; int *p = &x; int **pp = &p; **pp = [1]; printf("%d\n", [2]);
*pp instead of **pp.**pp instead of *p.Assigning **pp = 50; changes x to 50. Printing *p shows the updated value.
Fill all three blanks to create a pointer to pointer, assign it, and print the value of x.
int x = 100; int *p = &x; int [1] = &p; printf("%d\n", [2]);
Declare pp as int **pp, print value with *p or **pp. Here, pp is the pointer to pointer.