✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Write if the following code fragment doesn't compile or write if the code compiles but has undefined behavior when executed. Otherwise, write the exact text written to the standard output stream.
void boo(int&, int);
void foo(int, int&);
int gx{6};
int main() {
int one{2}, two{5};
boo(one, two);
int x {one + two};
foo(one, two);
x += one - two;
std::cout << x;
}
void boo(int& x, int y) {
int one{y + 12};
x = 2 * y + 5;
y = one + 4;
}
void foo(int x, int& y) {
int gx{::gx};
y = gx * 4;
::gx = x - y;
}
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!