State the total size in bytes, of the arrays a[4]
of char
data type and p[4]
of float
data type.
Short Answer
Views 27
Answer:
a[4]
(array ofchar
): Eachchar
occupies 2 bytes, so the total size is2 * 4 = 8 bytes
.p[4]
(array offloat
): Eachfloat
occupies 4 bytes, so the total size is4 * 4 = 16 bytes
.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.