Question DSA-ARR-0021
EasyAn int takes 4 bytes. How many bytes does the array int a[10] occupy?
- A.
40
- B.
14
- C.
Show answer and explanation
Answer: A
10 elements × 4 bytes = 40 bytes, stored contiguously.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Arrays question
An int takes 4 bytes. How many bytes does the array int a[10] occupy?
40
14
Answer: A
10 elements × 4 bytes = 40 bytes, stored contiguously.
10
4