How to use 5 byte value in macro

Posted by shaktisinha on Stack Overflow See other posts from Stack Overflow or by shaktisinha
Published on 2010-04-20T06:18:00Z Indexed on 2010/04/20 6:23 UTC
Read the original article Hit count: 177

Filed under:

Hi All,

I've just started reading C and have a question about macro.
How can I use a 5 byte value with a macro
For eg.

#define MAX 0xdeadbeaf12
int main(){
printf(" 0x %2x \n", MAX);
}  

This code prints adbeaf12 but not deadbeaf12.
Please help.

Thanks

© Stack Overflow or respective owner

Related posts about c