Mapa mental
Data Types
Conteúdo do mapa
Data Types
Integer
- int
- Whole numbers only
- 0, 6, 10293, -999
- 2 or 4 bytes
Real / Float
- real
- Numbers that have a decimal part
- 0.15, -5.3, 100.0
- 4 or 8 bytes
Boolean
- bool
- Can only take one of two values, normally True or False
- True/False, 1/0, yes/no
- 1 bit needed, 1 byte normally used
Character
- char / chr
- A single letter, number, symbol
- @, 4, h, L
- 1 byte
String
- string / str
- Used to represent text, it is a collection of characters
- H@ppY B!rthD4y, How are you?
- 1 byte per character
Codes
Examples
Each data type is allocated a different amount of memory.
Casting
- Changing the type of variable from one to another
Informações
- Descrição
- GCSE Computer Studies Mapa Mental sobre Data Types, criado por Izzy DB em 16-12-2021.
- Criado por
- Izzy DB
- Visualizações
- 2
- Avaliação