Many languages allow you to insert underscores into long hex numbers to improve readability. I would like to put underscores into hex numbers that define forty bit hardware addresses. For example I would like to write 0x0400000000 as 0x04_0000_0000.
It is tough for me to count consecutive zeros but I can handle groups of four.
Does C or C++ allow punctuation inside hex constants?
Is there a practical workaround if something like this is not allowed in the language?
Thanks,