A89: Size of an enum


[Prev][Next][Index][Thread]

A89: Size of an enum




Hi, a little question :
Let's say I define a type like this :

typedef enum
{
  First,
  Second,
  ...
} My_Type;

...
My_Type var;
...

If I do that, 'var' will have a size of 16 bits, which is the size of
the 'int' type in TIGCC. So the question is : how can I specify that
'My_Type' is, let's say, 8 bits wide ? 

Thanks a lot !



References: