The number of bytes occupied by a character array of four rows and three columns is ______.
Advertisements
Question
The number of bytes occupied by a character array of four rows and three columns is ______.
Options
12
24
96
48
MCQ
Fill in the Blanks
Advertisements
Solution
The number of bytes occupied by a character array of four rows and three columns is 24.
Explanation:
- The size of the char data type is 2 bytes.
- Thus, 2 * 4 * 3 = 24.
shaalaa.com
Is there an error in this question or solution?
