Data types in c++
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.
User-defined data types
We have three types of user-defined data types in C++
1. struct
2. union
3. enum
1. struct
2. union
3. enum
Click here to complete toturial for user defined data types.
Derived data types in C++
We have three types of derived-defined data types in C++
1. Array
2. Function
3. Pointer
Click here to complete toturial for Derived data types.
No comments:
Post a Comment