Computer [Arrays]
What is the size in the memory required to store 15 elements in an array[ ] when :
i) A is of long data type
ii) A is of char data type
Answers
Answered by
5
I. A long type uses 8 bytes or 64 bits.
So, Total memory required = SDA length × Size of the data type
= 15 × 8
= 120 bytes
II. A char type uses 2 bytes or 16 bits.
So, Total memory required = 15 × 2
= 30 bytes
Answered by
0
Answer:
i . 120 bytes
ii. 30 bytes
Similar questions