<<threads merged>>
Code:typedef enum RelationalOperators {EQ, NE, GT, LT} Rel_Op; typedef union TokenAttribute{ Rel_Op rel_op; } TA; typedef struct Token { TA attribute; /* token attribute */ } Token;
I have been trying ti access the rel_op as i need to compare the content...but cant seem to get the syntax right...Code:Token temp; temp.attribute.rel_op[0]; /*error*/