how does the size of int ,float ,pointer varies according to 32 and 64 bit processors?

can anyone explain it clearly?

Recommended Answers

All 3 Replies

The variable sizes are determined by compiler, not the processor. I think sizeof() is a compile-time function (as opposed to run-time).

The bitness is usually the size of registers in a processor. Generally, the bigger the registers, the faster the processor operates.

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.