State the total size in bytes, of the arrays a[4] of char data type and p[4] of float data type.
Long Answer
Views 121
Answer:
a[4](array ofchar): Eachcharoccupies 2 bytes, so the total size is2 * 4 = 8 bytes.p[4](array offloat): Eachfloatoccupies 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.