Can someone remind me why this works?
A function requiring int* could take as input an (obviously)
int *integer;
but it could also accept
&var->integer
with var being var_t*, where var_t:
typedef struct {
int integer;
} var_t;
why is the 2nd accepted?
edit: oopsy, question is same but var is actually a var_t* (and not a var_t) to be more precise.