KnowledgeBoat Logo
|

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