Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Int data type

Anyone know why the Int data type is 16-bit in VB, and 32-bit in C?
[67 byte] By [RHelliwell] at [2007-11-11 8:48:36]
# 1 Re: Int data type
Probably because in C-language it was customary to change the variable size in anticipation of a processor change but in the BASIC language it was not. That is, until .NET.
pclement at 2007-11-11 17:25:03 >
# 2 Re: Int data type
Okay, so that's why in .NET you can have signed/unsigned data types.

Thanks.
RHelliwell at 2007-11-11 17:26:00 >