[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] question: promotion to integer
From: |
E. Weddington |
Subject: |
[avr-libc-dev] question: promotion to integer |
Date: |
Thu, 31 Oct 2002 10:48:08 -0700 |
Hello all,
In avr gcc,
sizeof((unsigned char)~PIND) == 1
sizeof(~(unsigned char)PIND) == 2
So, the NOT operator promotes the value to an integer? I can't
rembember, is this Standard C, or artifact of compiler?
Thanks,
Eric
- [avr-libc-dev] question: promotion to integer,
E. Weddington <=