Int
Char
Unsigned
Signed
typedef
byte
I dont know the ones in bold, can you explain me what they do?
Thanks.
Int
Char
Unsigned
Signed
typedef
byte
I dont know the ones in bold, can you explain me what they do?
Thanks.
Note that keywords and identifier names are case sensitive.
unsigned is the short form of unsigned int.
signed is the short form of signed int, which is equivalent to int.
typedef is not a type, but the keyword for defining new names (aliases) for types.
A char is one byte, but byte itself is not a type unless defined as such.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
They are not data types.
Unsigned and Signed are modifier that tell you whether an int or a short can take negative values or not.
Typedef is used to created your own data types
There's no byte datatype, use char instead.
QuantumPete
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd
For systems with tight memory, your modifiers for a variable signify how much memory that variable will consume on the system for storing data. A char is 1 byte = 8 bits as an example.