You are here:About>Computing & Technology>C / C++ / C#> Glossary> I> Int - Definition
About.comC / C++ / C#

"Definition of Int"

From David Bolton,
Your Guide to C / C++ / C#.
FREE Newsletter. Sign Up Now!
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.
 All Topics | Email Article | Print this Page | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.