Discussion
Point the correct statement
Answer: C
Correct answer: Both A and B
A is true: an element of an array may itself be an array, which is exactly what a two-dimensional array is. B is true in the same sense - C has only one-dimensional arrays, and int a[3][4] is an array of 3 objects each of type int[4]. The remaining option is false: array elements always occupy contiguous memory, which is what makes index arithmetic possible.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development