Computer Science, asked by akshya73, 11 months ago

State the number of bytes and bits occupied by a character array of 10 elements in java​

Answers

Answered by sokhimeher
7

Answer:

each character occupies 2 bytes space. so,10 character elements of array would occupy 20 bytes space. for different compilers, different number of bytes is occupied for various datatypes.

Explanation:

Answered by Attitude2911
11

✏Normally a character occupies 2 bytes and 16 bits..so a character array of 10 elements in java occupies 20 bytes and 160 bits..

Hope it helps

Similar questions