logo

Crowdly

For what value of i , read from the input in the following code fragment, there...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

For what value of i

, read from the input in the following code fragment, there is a buffer overflow?

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;

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle2425.up.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!