C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Int

By David Bolton, About.com

Definition: Int is a fundamental (i.e. built into the compiler) type used to define numeric variables holding whole numbers.

Int is short for integer. As only whole numbers can be stored in an Int variable. 7, 4908 or -6575 are ok. 5.6 is not. Numbers with fractional parts requires a float type variable.

The size of number that can be stored in an int depends on the hardware. Usually, but not always it is 32 bits so the range of values is from -2,147,483,648 to 2,147,483,647.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples: Loop variables must always be declared as int.

Explore C / C++ / C#

More from About.com

C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. I
  6. Int - Definition

©2008 About.com, a part of The New York Times Company.

All rights reserved.