✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
For what value of , read from the input in the following code fragment, there is a buffer overflow?i
struct data { int x; int y; };
data a[] { {1, 2}, {3, 3}, {2, 1}, {0, 0} };
int i;
std::cin >> i;
std::cout << a[a[a[i].x].y - 1].x;
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!