The C++ compiler will return an error message if you use an array subscript that is beyond the boundaries of the array.
A: True.
B: False.
#include<iostream>
using namespace std;
int main()
{
int arr[5] = { 1,2,3,4,5 };
cout << arr[9];
//False - C++ comiler returns random number
}
Comments
Leave a comment