> 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
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
, 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
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