State the number of bytes and bits occupied by a character array of 10 elements in java
Answers
Answered by
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
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
English,
5 months ago
Math,
5 months ago
Accountancy,
5 months ago
Math,
11 months ago
English,
11 months ago
Social Sciences,
1 year ago