Yesterday while going through this question, I found a curious case of passing and receiving unnamed structures as function parameters.
For example, if I have a structure like this,
int main ()
{
struct {
int a;
} var;
fun(&var);
}
Now, what should the prototype of fun
be? And how can I use that structure as a structure(pointer) in the function fun
?