: This message was edited by MT2002 at 2005-8-24 20:5:38
: : : why does c/c++ have so many data types? i.e. int32, int64, long, float, double.... Shouldn't there just be only the necessary datatypes?
: : :
: :
: : they are all necessary, depending on the program. They are all necessary at one time or another because they each do something different.
: :
:
: Actually, "int32" and "int64" are not defined
: by C/C++. They are defined by either the compiler or
: *.lib file. Im assuming they are used for portability
: (ie; "int32" is a 4 byte int, "int64" 5 byte).
:
: The only data types are char,int,float,double, and void.
:
: "signed","unsigned" are used to tell the
: compiler how to represent the data.
:
: "short", "long" I *think* are used for data type sizes??
: I forget--I never had a use for them!
:
:
:
int64 would be an 8 byte int (assuming 8-bit bytes)
short would be int16 (2-byte int)
long would be int32 (4-byte int)
To understand recursive, first you need to understand recursive