Computer Applications
Determine the total bytes required to store B[17], a char array.
Java Arrays
2 Likes
Answer
A char data type requires 2 bytes in memory. So, the memory required to store 17 char elements will be 17 X 2 = 34 bytes.
Answered By
2 Likes
Related Questions
What do you understand by an array ? What is the significance of arrays ?
What is meant by index of an element ? How are indices numbered in JAVA ?
What is the data type of elements of an array called ?
Arrays do not prove to be useful where quite many elements of the same data types need to be stored and processed. (T/F)