Visual Studio
Confronto tra tipi di dati in diversi linguaggi

In questo argomento sono elencati i tipi di dati per Visual Basic, Visual J#, C++, C#, JScript e Visual FoxPro.

Tabella dei tipi di dati

Contenuto e dimensione Visual Basic Visual J# C++ C# JScript Visual FoxPro

Dati sconosciuti

n/d

Object

VARIANT

n/d

Object

Variant

Decimal

Decimal (struttura .NET Framework)

n/d

DECIMAL

decimal

decimal

n/d

Date

Date (struttura .NET Framework)

java.util.Date

DateTime

DATE

DateTime

DateTime

Oggetto Date

Date

DateTime

Carattere SBCS

(1 byte)

n/d

n/d

signed char

__int8

n/d

sbyte

Character

Carattere Unicode (2 byte)

Char (struttura .NET Framework)

char

wchar_t

char

char

n/d

Sequenza di caratteri Unicode

String (classe .NET Framework)

java.lang.String

String

wchar_t*

string

String

VarChar

Valore Boolean (dipendente dalla piattaforma)

Boolean (struttura .NET Framework)

boolean

VARIANT_BOOL

bool

boolean

Logical

1 byte

Tipo di dati SByte (Visual Basic) (struttura .NET Framework)

n/d

signed char

sbyte

n/d

n/d

2 byte

Short (struttura .NET Framework)

short

signed short int

__int16

short

short

n/d

4 byte

Integer (struttura .NET Framework)

int

long (long int, signed long int)

int

int

Integer

8 byte

Long (struttura .NET Framework)

long

__int64

long

long

Float

1 byte senza segno

Byte (struttura .NET Framework)

byte

BYTE

bool

byte

byte

Integer

2 byte senza segno

Tipo di dati UShort (Visual Basic) (struttura .NET Framework)

n/d

unsigned short

ushort

n/d

n/d

4 byte senza segno

Tipo di dati UInteger (struttura .NET Framework)

n/d

unsigned int e unsigned long

uint

n/d

n/d

8 byte senza segno

Tipo di dati ULong (Visual Basic) (struttura .NET Framework)

n/d

unsigned __int64

ulong

n/d

n/d

4 byte a virgola mobile

Single (struttura .NET Framework)

float

float

float

float

Float

8 byte a virgola mobile

Double (struttura .NET Framework)

double

double

double

Double

Double

Vedere anche

Riferimenti

Confronto tra concetti di programmazione in diversi linguaggi con esempi di codice
Confronto tra operatori in diversi linguaggi
Confronto tra controlli e oggetti di programmazione in diversi linguaggi e librerie

Altre risorse

Equivalenti in diversi linguaggi

Tag :


Page view tracker