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

can anyone explain it clearly?

Recommended Answers

This link may give you some preliminary information.

http://en.wikipedia.org/wiki/64-bit

Jump to Post

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.