You are attempting to dereference i 9 times, but there are no addresses set up to allow this.
How about:
Code:
#include <stdio.h>
int main() {
int a = 42;
int *b = &a;
int **c = &b;
int ***d = &c;
int ****e = &d;
int *****f = &e;
printf("%d\n", *****f);
return 0;
}
or
Code:
#include <stdio.h>
void f(int ******x) {
printf("%d\n", ******x);
}
void e(int *****x) { f(&x); }
void d(int ****x) { e(&x); }
void c(int ***x) { d(&x); }
void b(int **x) { c(&x); }
void a(int *x) { b(&x); }
int main() {
int x = 42;
a(&x);
return 0;
}