Thanks cwr for your advice it really did help clear up a few things.
But I just don'nt know how to pass the parameter to the gunction test. I want to pass the sturcture as a function parameter and uses it's variables in the new function. I was hoping If somebody can show me how to do it.
Code:
typedef struct{
int number;
int place;
int postcode;
} information_t;
int test(information_t *in);
int main()
{
information_t information;
information *in;
printf(" Please enter the number: ");
scanf(" %d",&information.number);
printf(" Please enter the place: ");
scanf(" %d",&information.place);
printf(" please enter the postcode: ");
scanf(" %d",&information.postcode);
test(&information_t *in);
return 0;
}
int test(information_t *in)
{
int position;
position= scanf(" %d%d%d", &in->number, &in->place, &in->postcode);
return(position);
}