Answer to Question #325102 in C++ for nickname

Question #325102

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.


1
Expert's answer
2022-04-09T17:55:42-0400
#include<iostream>


using namespace std;


int main()
{
	int arr[5] = { 1,2,3,4,5 };
	cout << arr[9];
	//False - C++ comiler returns random number
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS