I want to assign 0x0000041727101980 to int64_t, but the above warning is coming i.e. integer constant is too large for 'long' type.
how can I overcome it using the type int64_t
I want to assign 0x0000041727101980 to int64_t, but the above warning is coming i.e. integer constant is too large for 'long' type.
how can I overcome it using the type int64_t
I think integer constants are assumed to be a long, unless you specify otherwise. try adding "LL" to the end of your constant, like so:
Code:0x0000041727101980LL
Hey, thanks a lot, problem is solved with LL ...