Re: [c-prog] Help required for creating enum

2008-11-24 Thread David Hamill
> Basically, I want to knopw whether one can specify data > type with enum > declaraion. According to K&R2, "The identifiers in an enumerator list are declared as constants of type int". So you're stuck with whatever the compiler uses for ints. But when you use an enum value, you can cast it

Re: [c-prog] Help required for creating enum

2008-11-24 Thread Brett McCoy
On Mon, Nov 24, 2008 at 5:57 AM, u will know when u IM me <[EMAIL PROTECTED]> wrote: > I want to create an enum variable whose size is 4 byte in 32- machine > and 8 bytes on 64 bit machines. > > Basically, I want to knopw whether one can specify data type with enum > declaraion. > > I am using gcc

Re: [c-prog] Help required for creating enum

2008-11-24 Thread Tyler Littlefield
, November 24, 2008 3:57 AM Subject: [c-prog] Help required for creating enum Hi, I want to create an enum variable whose size is 4 byte in 32- machine and 8 bytes on 64 bit machines. Basically, I want to knopw whether one can specify data type with enum declaraion. I am using gcc

[c-prog] Help required for creating enum

2008-11-24 Thread u will know when u IM me
Hi, I want to create an enum variable whose size is 4 byte in 32- machine and 8 bytes on 64 bit machines. Basically, I want to knopw whether one can specify data type with enum declaraion. I am using gcc 3.4 Thanks In advance