Learn Programming - ZedLX

A Free Computer Programming Tutorial for Beginners

The Type int [1/12]

The Type int

The type int represents whole numbers.

A variable of type int cannot be assigned a value that is not a whole number.

Both types num and int are commonly needed in many programs. A count of anything (chairs, apples, people) is always of type int. Knowing that a value is of a particular type can be immensely helpful, especially when writing computer programs.

Loading...