✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Яким буде результат виконання фрагменту програми:
int i=1, j=0, x;
switch (i) {
case 0:
x = j;
break;
case 1:
x = 0;
break;
case 2:
x = i;
default:
x = 5;
}
cout << x << endl;