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

Definition of Int

By , About.com Guide

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#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Getting Started
  5. Int - Definition

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

All rights reserved.