🟢 Վարժություն 13

Ի՞նչ կպտվի էկրանին
#include <iostream>
void swap(int *a, int* b) {
   int tmp = *a;
   *a = *b;
   *b = tmp;
}
int main() {
  int a = 10;
  int b = 20;
  swap(&a, &b);
  std::cout << a << " " << b;
}
To check your solution you need to sign in
Sign in to continue