The amount of memory required to store a particular data type is dependent upon the underlying architecture and the language implementation. In C, we can determine the physical characteristic of a particular implementation by including the <limits.h> header.
The <limits.h> header must define the following symbol:
#define CHAR_BIT 8
The value (8) may vary from implementation to implementation, however the standard dictates that it must be at least 8. Thus a char is always at least 8 bits in length.
For any type T, sizeof(T) returns the length of T in chars. Thus sizeof(char) is guaranteed to be 1 (char) across all implementations while sizeof(T) * CHAR_BIT will determine the number of bits. A char is the smallest unit of addressable storage, thus all type lengths are guaranteed to be at least as long as a char.
The <limits.h> header also provides symbols that we can use to determine the range of values we can store in an integral type (char, long, short, int). For instance, SCHAR_MIN defines the minimum value for a signed char. To determine the range for floating-point types (float, double, long double), include the <float.h> header.
We can also use sizeof() to determine the length of user-defined types, including aliases (typedef), struct and union types. Note that the length of a struct is not necessarily the sum of its member lengths as memory alignment constraints may introduce padding bytes to ensure members are aligned on appropriate word boundaries. For instance, a 32-bit int is faster to access when aligned on a 4-byte boundary.
Memory allocation is the act of reserving a chunk of memory for some set of data. In programming terms, this is normally done by declaring a variable. Large arrays of data will require large blocks of contiguous memory, which the programmer must request from the operating system.
memory addres register is used hold data addresses that refer to the data portion of the memory(by umar farooq.pk) memory addres register is used hold data addresses that refer to the data portion of the memory(by umar farooq.pk)
A storage device is used to store data when data is not being used in memory.
Code Segment, in which all the application code is stored Data Segment, that holds the global data
"Abstract Data Type"
It is important to have large storage and memory for various reasons. This will determine the performance of your computer in terms of the data it can process and be able to store.
the same position in memory as the previous data aliza
Processor registers occupy the top most position in memory hierarchy. They provide high-speed storage space and fast access to data.
These are different and unrelated terms. SATA is a bus for connecting data storage devices to a motherboard. DDR is a type of memory.
Memory allocation is the act of reserving a chunk of memory for some set of data. In programming terms, this is normally done by declaring a variable. Large arrays of data will require large blocks of contiguous memory, which the programmer must request from the operating system.
The Memory card are devices that store digital data. Memory cards are used in various electronic devices from hand held computers, mobile phones, cameras, etcetera. Memory cards are rewritable. They are quite small in size, they can store a high amount of data
In terms of internet technology various Headers are added to data to aid in the process of sending and verifying data.
A memory map table is a data structure that associates ranges of memory addresses with specific hardware devices or memory locations. It provides an organized way for the operating system to manage the various memory resources available in the system. The memory map table helps determine where data should be stored or retrieved in the computer's memory hierarchy.
Various versions of dynamic random access memory called DRAM.
Data is actually stored in various places in a computer, mostly determined by how quickly it must be accessed:internal CPU registers for the data actually being processed nowcache memory for data that has been recently accessed that is likely to need to be accessed again soonmain memory (RAM) for data that will need to be available whenever neededvirtual memory (in a file on the hard disk) for data that is rarely needed but can be copied into main memory when neededinput/output files (on hard disk) for data that the program will need for the current job and for result data from the current job
Flash memory is a type of non-volatile memory that allows for both reading and writing data. It is commonly used in USB drives, SSDs, and memory cards due to its ability to retain information without power. Flash memory is efficient for tasks that require frequent data access and storage, making it ideal for various applications in computing and electronics.
When a disk is formatted or reformatted, everything previously on the disk is lost.'Memory' in computer terms does not usually refer to the data that is on a separate disk. In the computer system there are various forms of 'memory'...At the highest level there is the data stored in the internal registries.Next there is a processor cache of memory.Next there is 'Random Access Memory' (RAM). This is in the form of a special slot-in unit in the PC.Then there is the hard-drive. This also serves as memory. It holds the programmes and related input and output data. The hard drive has its own 'disks'. If you format or re-format your hard drive you will lose everything! Don't do it! (Formatting a hard-drive disk should only be done by someone who knows what they are doing!)Data can also be stored on extra drives, internal or external, and can take various forms, e.g. other hard-disks, 'flash drives', USB memory sticks, etc. These devices are used to store of various types of data such as pictures, music, text files, spreadsheets etc. Data stored in this way is a form of 'memory'.Formatting or re-formatting one of these storage devices will destroy all the data that was previously on it. 'Formatting' wipes a disk clean of data, and divides its storage capacity into many sectors to enable future data to be readily stored and accessed in an organised way.