✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the output of the following code fragment?
struct data {
int i;
int j;
int v;
};
data d[3] { {0, 1, 2}, {3, 2, 1}, {0, 1, 2} };
std::cout << d[2].j << ' ' << d[d[0].v].i << ' ' << d[d[1].j].v << '\n';
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!