English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

Counts and array subscripts.
Sometimes but not too often they are also used for flags (1=yes, 0=no).

2007-06-12 20:27:45 · answer #1 · answered by AnalProgrammer 7 · 0 0

[lower limit] ...-5,-4,-3,-2,-1,0,1,2,3,4,5... [upper limit]

Different programming languages define integers differently. For example, you can have 16-bit integers, 32-bit integers, 64-bit integers. You can have signed or unsigned integers (those that can or cannot contain negative numbers). Each type contain a different range of numbers. For example, an int data type in C# can contain a number within the following range: -2,147,483,648 to 2,147,483,647.

There are countless integer types.

2007-06-13 01:25:42 · answer #2 · answered by Boarder X 1 · 0 0

Counters in loops as in

for (int i=0; i<6; i++) {
do_something_with(i);
}

2007-06-13 00:00:09 · answer #3 · answered by Jo 2 · 0 0

counters in loops, boolean in languages that do not have boolean, flags, accessing an array etc.

2007-06-13 09:07:44 · answer #4 · answered by JR 2 · 0 0

fedest.com, questions and answers