passing an array struture as an array

Posted by Matias on Stack Overflow See other posts from Stack Overflow or by Matias
Published on 2010-04-27T00:29:48Z Indexed on 2010/04/27 0:33 UTC
Read the original article Hit count: 211

Filed under:

I'm having trouble passing a struture array as a parameter of a funtion

struct Estructure{
 int a;
 intb;
};

and a funtion

Begining(Estructure &s1[])
{
   //modifi the estructure s1
};

and the main would be something like this

int main()
{
  Estructure m[200];
  Begining(m);
};

is this valid?

© Stack Overflow or respective owner

Related posts about c