ExamVeda
Login
Home
This question belongs to C Program Arrays And Strings
Arrays and Strings
?

What is the size of an integer array declared as int arr[5] in bytes?

Answer & Solution
Correct Answer: Option B
The size of an integer array declared as int arr[5] in bytes depends on the size of an integer in the system. Typically, the size of an int is 4 bytes.

Calculation:
The array arr has 5 elements.
Each int is 4 bytes.
Total size = 5 * 4 = 20 bytes
Therefore, the size of int arr[5] is 20 bytes.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Almahmud Siam
Almahmud Siam 2 years ago
I think the correct solution is option B.20
4*5=20 bytes