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