Hi,
I am a total n00b in C++ and have a basic question:
How big is a string:
I have discovered the following:
bool - 1 byte
char - 1 byte
int - 2 bytes
short int - 2 bytes
long int - 4 bytes
float - 4 bytes
double - 8 bytes
then theres string... does it have a fixed size?
and what about enum? Its a type as well, isnt it?
I am a total n00b in C++ and have a basic question:
How big is a string:
I have discovered the following:
bool - 1 byte
char - 1 byte
int - 2 bytes
short int - 2 bytes
long int - 4 bytes
float - 4 bytes
double - 8 bytes
then theres string... does it have a fixed size?
and what about enum? Its a type as well, isnt it?
Comment