promotion image of download ymail app

About word size in computers?

I just learnt that most computers today have word sizes of 32 or 64 bits. Why, then, do we need to declare an integer as "short" or "long". The end result is that the short int will anyway be converted to a longer word size, since the processor can only handle 32 bit words.

Please clarify.

2 Answers

  • 9 years ago
    Favorite Answer

    Because the standard that defined ANSI C / C++ says short means 16-bit (at least). In Java and Windows it's 16-bit for sure.

    Word size is dependent on CPU, but language variable type integer / short / long is not dependent.

    • Commenter avatarLogin to reply the answers
  • Anonymous
    4 years ago

    Hold the control button and use the scroll on your mouse to make the text bigger or smaller.

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.