C/Pointer/Pointer Pointer
Pointer and pointer"s pointer
<source lang="cpp">
- include <stdio.h>
int main(void) {
int x, *p, **q; x = 10; p = &x; q = &p; printf("%d", **q); /* print the value of x */ return 0;
}
</source>
Pointer"s pointer: value
<source lang="cpp">
- include <stdio.h>
int main(void) {
float *fp, **mfp, val; fp = &val; mfp = &fp; **mfp = 444.903; printf("%f %f", val, **mfp); return 0;
}
</source>