I have declared a structure within a structure. but it keeps on getting unhandled exception, why is this so?

struct b {
int v;
struct n {
int o;
unsigned chat g;
} r;
}

struct b *h;

h = (struct b *) calloc(10, sizeof(struct b);

h[i].r.g = 0;