Given a data structure with three fields: an array of integers, matrix of real numbers, and a character string. Calculate the total memory size (in bits, bytes, kilobytes, and megabytes) for A record, B table, and C dynamic array variables.
Given a data structure with three fields: an array of integers, matrix of real numbers, and a character string. Calculate the total memory size (in bits, bytes, kilobytes, and megabytes) for A record, B table, and C dynamic array variables.
Related questions
Question
Data structure and algorithms in C++
Data types and algorithms. Abstract structures of information.
Task: Given a data structure with three fields: an array of integers, matrix of real numbers, and a character string. Calculate the total memory size (in bits, bytes, kilobytes, and megabytes) for A record, B table, and C dynamic array variables.
note: The data types are respectively equal to the memory size "short - 2 byte", "int - 4", "long - 8", "float - 4", "double - 8", "long double - 12", "char - 1".
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 7 steps