Home | | Computer Science 11th std | Memory representation of Fundamental Data types

Chapter: 11th Computer Science : Chapter 9 : Introduction to C++

Memory representation of Fundamental Data types

One of the most important reason for declaring a variable as a particular data type is to allocate appropriate space in memory.

Memory representation of Fundamental Data types:

 

One of the most important reason for declaring a variable as a particular data type is to allocate appropriate space in memory. As per the stored program concept, every data should be accommodated in the main memory before they are processed. So, C++ compiler allocates specific memory space for each and every data handled according to the compiler’s standards.

The following Table 9.5 shows how much of memory space is allocated for each fundamental data type. Remember that, every data is stored inside the computer memory in the form of binary digits (See Unit I Chapter 2).

Table 9. 5 Memory allocation for Fundamental data types



Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
11th Computer Science : Chapter 9 : Introduction to C++ : Memory representation of Fundamental Data types |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.