Skip to content · ⁨Saltar al contenido⁩

Variables, types, and arithmetic · ⁨Variables, tipos y aritmética⁩

English

Every value has a type

  • In C, every variable has a type that says what kind of value it holds.
  • The three you use most: int (a whole number), double (a number with a decimal point), and char (a single character).
  • You must give the type when you create the variable: int n = 5; or double pi = 3.14;.
Español

Cada valor tiene un tipo

  • En C, cada variable tiene un tipo que indica qué clase de valor contiene.
  • Los tres que más usas: int (un número entero), double (un número con punto decimal) y char (un solo carácter).
  • Debes especificar el tipo al crear la variable: int n = 5; o double pi = 3.14;.

Handout · ⁨Material⁩

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP