You’ll probably have one or more ints in almost every method and class you write. They’re everywhere so you really should know how to use them.

This episode explains the data lengths of various ints and pointers along with words. Do you know what a word is? How about a double word or a DWORD? A quad word or a QWORD? A double quad word or a DQWORD? Do you understand how these relate to processors and operating systems?

And how about the short, int, long, and long long types? Do you understand some of the problems that can be caused by pointers switching from 32 bits to 64 bits?

This episode describes all this plus five systems for describing the lengths of all these types:

  • LP32 – The long and pointer types are 32 bit. This means that shorts and ints are 16 bit.
  • ILP32 – The int, long, and pointer types are 32 bit. This means that shorts are 16 bit.
  • LLP64 – The long long and pointer types are 64 bit. This means that ints 32 bit. And shorts are still 16 bit.
  • LP64 – The long and pointer types are 64 bit. This means that long longs are also 64 bit. Ints are 32 bit. And shorts are still 16 bit.
  • ILP64 – This is not a very common system. The int, long, and pointer types are 64 bit. This means that long longs are also 64 bit. And I’m not sure what length shorts are.