Before I get into anymore bad habits, please help me with passing a struct into a function. I've never had the need to do this in the past, but it seems like I need it now. If I had a struct like
How exactly I would I write the prototype, definition, and caller? I would want to have several functions have access to the same data set.Code:
struct test
{
int a, b, c, d , e;
char name1[20];
char name2[20];
......
};
TIA