Programming 01

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

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