ICSE Class 10 Computer Applications
Question 21 of 30
Solved Sample Paper 4 — Question 21
Back to all questions 21
Question Question 2(i)
State the number of bytes and bits occupied by a character array of 20 elements.
A char data type occupies 2 bytes in memory.
Total memory occupied by an array of 20 elements = 2 x 20 = 40 bytes.
Since 1 byte = 8 bits, memory occupied by an array of 20 elements = 40 x 8 = 320 bits.