You can go through https://onlinegdb.com/Hy_FYU9JP to resolve the bug
For further actions, you may consider blocking this person and/or reporting abuse
You can go through https://onlinegdb.com/Hy_FYU9JP to resolve the bug
For further actions, you may consider blocking this person and/or reporting abuse
mmvergara -
Aryan Dev Shourie -
Athreya aka Maneshwar -
Mike Young -
Top comments (5)
Waleed has the details, but you know you needn't cast this at all?
That compiles fine, and will work, printing out the pointer address in Hex, as is normal.
As Waleed says, if you want it as an integer (and printed in traditional decimal), you need the integer type to be big enough. There's a std::intptr_t for this:
thanks, I got that 😊
I just want to change the output as an integer and I am unable to debug this error, please help me out.
dev-to-uploads.s3.amazonaws.com/i/...
I am getting output in hexadecimal without using an unsigned keyword but , I just want to change output as an integer, can you tell me how to do this, and yes, my OS is a 64 bit.