2.1 Literales


Literal: un dato escrito directamente (ej. 1234, “hola”, etc.)


Nombre
Descripción
Ejemplos
Decimal
entero en base 10
1234
Hexadecimal
entero en base 16
0x1234
Octal
entero en base 8
01234
Carácter
byte en ASCII
'A'
Coma flotante
número real en c.f.
1.25
3.456e6
3.456e-6
Cadena
texto literal
"hola, mundo"