Depends what n_p and n_t types are - if they're large structures, could be a problem
n[138] and p[317]
and am trying to pass them as parameters to a function.
void create_reports (n_t n[], p_t p[]);
Code:
// this is on the stack, which is a real problem for old compilers on old OS, with very small stacks
int main(void) {
n_t n[138];
p_t p[317];
// blah
}
// these are not on the stack, but in the normal data segment, but their scope is still within main
int main(void) {
static n_t n[138];
static p_t p[317];
// blah
}
Your prototype for your solution is
void create_reports (n_t *n, p_t *p);
And the call is
create_reports(n,p);