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
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.