16.5k views
3 votes
Most c++ compilers check whether indices are within the range determined by an array's declaration. true false

User Xgqfrms
by
6.2k points

1 Answer

7 votes

I’d say True

In C++ syntax, it is correct to exceed the valid range of indices for an array. However, this can cause problems like errors on compilation and runtime. Use of Brackets [] in C++ have a close relationship with arrays. They specify the size of arrays when they are declared. They also specify indices for concrete array elements when they are accessed.


User Keugyeol
by
6.1k points