Referece, Array and function problem

i have this code
struct bad
{
int here
int dere
};
and i put them in a array. how do i call the array[1].here only to the function using a referece?
for a whole array i would say something like (the call bit) problem(&array[0]) and void problem(bad array[])

void problem(bad array[]) // function with struct and array

//main body

problem(&array[0]) // calling function with referece array

how do you just call only array[1].here value to the function using the referece?
Last edited on
What? can you clarify?
Topic archived. No new replies allowed.