If an array is declared as double arr[50], how many bytes will be allocated to it?
Answers
Answered by
2
Answer:
Answer is 400
hope it helps
Answered by
0
Answer:
If an array is declared as double arr[50], 400 bytes will be allocated to it.
Explanation:
- An array is a group of related data elements kept in close proximity to one another in memory.
- The sole way to retrieve each data element directly is by using its index number, making it the most basic data structure.
- Indexed arrays, multidimensional arrays, and associative arrays are the three types of arrays.
The array data structure's benefits
- Multiple data of the same name and similar types are stored in arrays. It enables access to elements at random.
- There is neither a memory deficit nor an overflow because the array is fixed in size and stored in adjacent memory locations. Any type of data with a fixed size should be stored.
#SPJ2
Similar questions
Social Sciences,
3 months ago
Math,
3 months ago
Chemistry,
7 months ago
English,
7 months ago
Social Sciences,
11 months ago
Hindi,
11 months ago