I want to find offset of a structure element. I found some answers which suggested offsetof(structure tag, element)
function. However, there are structures which do not have structure tag. For example:
struct {int a;} var;
How to handle these cases?