Pular para o conteúdo

Lesson 65: Data types

English

The right box for each value

  • A data type says what kind of value a variable holds.
  • Choose the data type from the value: a whole number, a number with decimals, one character, some text, or true/false.
Exam data type C++ on the Arduino Example
INTEGER int 48
REAL float 21.5
CHAR char 'C'
STRING String "Ningbo"
BOOLEAN bool true
  • One character goes in single quotes: 'C'. Text goes in double quotes: "Ningbo".

Entrar ou criar conta

IGCSE, A-Level & AP