Discussion
C does no automatic array bound checking. This is best described as
Answer: D
Correct answer: C's shortcoming
C performs no bounds check, so an out-of-range subscript quietly reads or writes memory belonging to something else. It is generally counted a shortcoming - the source of buffer overflows and of many hard-to-find bugs. The omission was deliberate, since it keeps array access as cheap as raw address arithmetic, but later languages reinstated the check for good reason.
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