I
ianbrn
Hello,
I have a struct defined thus:
typedef struct myStruct
{
int j;
} myStruct;
I saw somewhere calls with the following syntax:
f1(&*a)
What should be the protype of f1 so that it will be correct and
so that compilation will succeed ?
I am talking about two cases:
In the first, we have the following definition:
myStruct a;
in the second, we have
myStruct* a;
Is it possible with both case to have a definition of f1() so that
f1(&*a) will be correct and pass compilation ?
Any ideas?
Ian
I have a struct defined thus:
typedef struct myStruct
{
int j;
} myStruct;
I saw somewhere calls with the following syntax:
f1(&*a)
What should be the protype of f1 so that it will be correct and
so that compilation will succeed ?
I am talking about two cases:
In the first, we have the following definition:
myStruct a;
in the second, we have
myStruct* a;
Is it possible with both case to have a definition of f1() so that
f1(&*a) will be correct and pass compilation ?
Any ideas?
Ian