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 silently reads or writes memory that belongs to something else. It is generally counted a shortcoming: it is the root of buffer overflows and of a great many hard-to-find bugs. The design was deliberate - omitting the check keeps array access as fast as raw address arithmetic - but the cost in safety is the reason later languages put the check back.
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