Suppose I have the following types:
typedef uint8 (*P2MyFunc)(void);
typedef struct
{
P2MyFunc ptr;
}MyStruct;
Given an instance inst
of MyStruct
. is there any difference at all between the following calls ?
(*inst.ptr)();
inst.ptr();
Both seem to work just fine but the first one might be prone to compiler warnings.