struct x { char a[10]; char b[20]; int i; char *c; char *d[10]; };
I am filling this struct and then using the values. On the n
I believe you can just assign the empty set ({}) to your variable.
{}
struct x instance; for(i = 0; i < n; i++) { instance = {}; /* Do Calculations */ }