Você está na página 1de 6

Linguagens com variáveis não tipadas

JavaScript

Perl

BCPL
Java - Linguágem Fortemente Tipada
Tipos Primitivo Menor Maior
byte -128 127
short -32768 32767
int ### 2,147,483,647
Inteiro

long ### 9,223,372,036,854,770,000

Ponto Flutuante float -1.40E-37 3.40282347E + 38

double -4.94E-307 1.79769313486231570E + 308

Caractere char 0 65535

Booleano boolean false true


da
Tamanho em bits Tamnho em Bytes
8 1
16 2
32 4

64 8

32 4

64 8

16 2

1 0.125
C# - Linguagem Fortemente Tipada
Tipos Tamanho em Bytes

Booleano 1 byte

byte 1 byte

sbyte 1 byte

short 2 bytes

unshort 2 bytes
int 4 bytes
uint 4 bytes
long 8 bytes

ulong 8 bytes
float 4 bytes
double 8 bytes
decimal 16 bytes
char 2 bytes
emente Tipada
Valores possíveis

true e false

0 a 255

-128 a 127

32768 a 32767

0 a 65535
-2147483648 a 2147483647
0 a 4294967295
-9223372036854775808L a 9223372036854775807L

0 a 18446744073709551615
Números até 10 elevado a 38. Exemplo: 10.0f, 12.5f
Números até 10 elevado a 308. Exemplo: 10.0, 12.33
Números com até 28 casas decimais. Exemplo 10.991m, 33.333m
Caracteres delimitados por aspas simples. Exemplo 'a', 'ç', 'o'
C++ - Linguágem Fortemente Tipada
Sequência Bytes Ocupados Faixas (ou intervalos)

short int
signed int
signed short int 2 -32.768 a 32.767
wchat_t
signed wchar_t

unsigned short int


2 0 a 65.535
unsigned wchar_t

int
long int 4
signed long int -2.147.483.648 até 2.147.483.647
unsigned int
4 0 a 4.294.967.295
unsigned long int

char
1 -128 a 127
signed char
unsigned char 1 0 a 255
bool 1 true ou false
float 4 1,2e-38 a 3,4e+38
double
8 2,2e-308 a 1,8e+308
long float

Você também pode gostar