An integer array AR[] have a capacity of 8 elements, then what will be the
total memory required in bytes for the array AR[)
Answers
Answered by
0
Answer:
What is an array?
An array is a collection of similar type data . When you declare it (create a memory) for the array you need to mention the size of the array inside “[]” square brackets.
Exact Answer for you :
You wanna declare an array with 55 elements as
double A[55];
This will create in memory as
A[0] , A[2] …. A[54]
So, each double is having 8 bytes (Almost every compiler *May differ)
So that,
55*8 = 440 bytes
Thank you
Similar questions
World Languages,
3 months ago
Math,
3 months ago
Chemistry,
8 months ago
Hindi,
8 months ago
Science,
1 year ago