Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

The Type int [1/14]

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.