Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Types - Visual Basic 6 and C++
#6
Those aspiring to port to C++ or just learn it:

char
Character or small integer.
1 byte
signed: -128 to 127
unsigned: 0 to 255

short int (short)

Short Integer.
2bytes
signed: -32768 to 32767
unsigned: 0 to 65535

int
Integer.
4bytes
signed: -2147483648 to 2147483647
unsigned: 0 to 4294967295

long int (long)
Long integer.
4bytes
signed: -2147483648 to 2147483647
unsigned: 0 to 4294967295

bool
Boolean value.
It can take one of two values: true or false.
1byte
true or false

float
Floating point number.
4bytes
3.4e +/- 38 (7 digits)

double
Double precision floating point number.
8bytes
1.7e +/- 308 (15 digits)

long double
Long double precision floating point number.
8bytes
1.7e +/- 308 (15 digits)

wchar_t
Wide character.
2bytes
1 wide character

void
No associated datatype (accepts any type)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)