Joined: 26 Oct 2006 Posts: 10 Location: delhi -india
range of byte
Posted: Mon Oct 30, 2006 3:18 am
hi,does anybody knows ,what is the range of byte,is it the same as int8.
and can we specify whether a variable is signed or unsigned such as
unsigned char and signed char.
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
Posted: Mon Oct 30, 2006 5:11 am
A byte is a byte is a byte. If you're unsure look at the includes that define it an see how exactly how it is defined....
From the manual:
Quote:
Basic Types
Type-Specifier
int1 Defines a 1 bit number
int8 Defines an 8 bit number
int16 Defines a 16 bit number
int32 Defines a 32 bit number
char Defines a 8 bit character
float Defines a 32 bit floating point number
short By default the same as int1
Int By default the same as int8
long By default the same as int16
void Indicates no specific type
Note: All types, except float, by default are unsigned; however, maybe preceded by unsigned or
signed. Short and long may have the keyword INT following them with no effect. Also see #TYPE
to change the default size.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum