Algorithms

Data type

What kind of value is stored: an integer, a number with decimals, a letter or true/false. The processor handles the basic ones directly.

Example

Age 42 is an int, price 3.14 is a float, the letter "A" is a char and "paid?" is a bool.

Test yourself: Data type

Basic data types

What type do you use to store whether a user is online or not?

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.