何度も写経して体で覚えるべし。。
#include <stdio.h>
int main(void){
char str[] = "Hoge is Hoge!!";
char *p;
char *(*pp);
p = str;
pp = &p;
printf("%p\n", str);
printf("%s\n\n", str);
printf("%p\n", &p);
printf("%p\n", p);
printf("%s\n\n", p);
printf("%p\n", &(pp));
printf("%p\n", pp);
printf("%p\n", *pp);
printf("%s\n\n", *pp);
return 0;
}
#include <stdio.h>
int main(void){
int a, *p, **myp;
p = &a;
myp = &p;
*(*myp) = 100;
printf("%d %p\n", *(*myp), *myp);
printf("%d %p\n", *p, p);
printf("%d %p\n", a, &a);
return 0;
}