Is there anything technically wrong in doing the following
If there is a problem, what would rectify the error(s)?Code:typedef struct a
{
/* various data types */
} data;
data getInfo(data in)
{
/* do stuff with data types one or all */
return in;
}
int main(void)
{
data test = getInfo(test);
/* clean up */
}
TIA