J
junky_fellow
Consider the following piece of code:
Note: The size of long is 64 bits on my processor.
#define MYCONSTANT 0x80000000UL
int main(void)
{
unsigned long i = 0x1000;
i &= ~MYCONSTANT;
}
My question is which is better,
#define MYCONSTANT 0x80000000UL
or
#define MYCONSTANT 0x80000000L
Thanx for any help in advance ....
Note: The size of long is 64 bits on my processor.
#define MYCONSTANT 0x80000000UL
int main(void)
{
unsigned long i = 0x1000;
i &= ~MYCONSTANT;
}
My question is which is better,
#define MYCONSTANT 0x80000000UL
or
#define MYCONSTANT 0x80000000L
Thanx for any help in advance ....