✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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 mystery(int& x, int *y) {
int temp{x};
x = *y;
*y = temp;
}
// suppose these three statements comprise function main ...
int a{10}, b {20};
mystery(a, &b);
std::cout << a << ',' << b;
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!