I understood that 0x80000000 is the minimum value for the 32 bit integer for 32 bit machine. If I want the same value for 64 bit machine, what will be the value?

Please explain.

Recommended Answers

All 3 Replies

2^64. As in 64-bits.

I understood that 0x80000000 is the minimum value for the 32 bit integer for 32 bit machine. If I want the same value for 64 bit machine, what will be the value?

Please explain.

0x80000000 /in decimal -2147483648/ is minimum value of signed 32-bit integer
0x0 /in decimal also 0/ is minimum value of unsigned 32-bit integer.
On 64-bit system -2147483648 should be represented as 0xffffffff80000000.

hope that helps.

Two wrong answers, we have here.

commented: O god, you're right. I misread the original post :( +12
commented: N/A +9
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.