I am trying to return a struct which is defined as below:
EXAMPLE.C
struct test
{
int x;
int y;
int z;
};
struct test t1,t2;
I don't even have to explain the function, because I am getting error while declaring the function in the header file.
EXAMPLE.H
test calculate(int percent,int distance);
int modify(struct test x1);
So I will return the struct t1 in the function calculate and i will pass the struct t2 into the function modify. I am not sure what am I doing wrong, but I am getting syntax error
EXAMPLE.Hknow whattestis?