Assuming int is of 4bytes, what is the size of int arr[15];?
2025
Assuming int is of 4bytes, what is the size of int arr[15];?
- A.
15
- B.
19
- C.
11
- D.
60
Attempted by 562 students.
Show answer & explanation
Correct answer: D
To find the size of the array int arr[15], we need to multiply the number of elements by the size of each element.
Step 1: The array has 15 elements.
Step 2: Each int is 4 bytes in size.
Step 3: Total size = 15 × 4 = 60 bytes.
Therefore, the size of the array is 60 bytes.