Do you mean, you can do this:Zacariaz wrote:well i dont think theres anything more to say about this other that i for one think its weird that we have 16, 32 and 64 bit integers but no 8 bit integer. Somewhere along the line, whoever developed c++, though that the 8 bit int should act different that than the others. I really dont see the point.
Code: Select all
short int
int
long int
long long int
Code: Select all
char int
A 'char' type is designed for holding characters, hence the name - (following is afaik, someone please correct me if it's wrong) it also generally is not meant to be signed (that'd bring the limit down to 128, iirc).