c++

data types in c++
we have
int
short int
long int
bool
float
string
char
double


many others..just search for them
closed account (z05DSL3A)
many others..just search for them
Can you tell me what they are...so I know what to search for?
they are the size and specific data used in declaring a valid variable...in c++ when you use a data type, it tells the program the sort of information you want to use...
When programming, we store the variables in our computer's memory, but the computer has to know what kind of data we want to store in them, since it is not going to occupy the same amount of memory to store a simple number than to store a single letter or a large number, and they are not going to be interpreted the same way.
The memory in our computers is organized in bytes. A byte is the minimum amount of memory that we can manage in C++. A byte can store a relatively small amount of data: one single character or a small integer (generally an integer between 0 and 255). In addition, the computer can manipulate more complex data types that come from grouping several bytes, such as long numbers or non-integer numbers.
eg...when i declaring a string type;----It tells the program that i am going to deal with alphabets..
Topic archived. No new replies allowed.