Is there a convenient way of writing simple but long hex values in c? -


I am currently writing a code where I need to modify the 8-byte variable 1 bit at a time I I I was wondering, if prolonged, but is a more convenient way of writing simple hex value:

variable and amp; 0x8000000000000000

I know that I may declare as 0x80 to a character and then take it to a different type and I can move it. I'm just looking for some simple and more practical things.

You can use the bit-wise left shift operator to make it more clear: < / P>

  variable & amp; 1ULL & lt; & Lt; 63  

Comments