C pass array of structs by reference or by value to a function

Viewed 4207

I have a function in C which takes an array of structs as an argument:

int load_ini_parms(char * ini_file,
                   struct test_object s[],
                   int num,
                   struct lwm2m_object * l)

My question is, would it be better programming practice to pass a pointer to an array of structs? What would be the advantages or disadvantages?

2 Answers
Related