Advertisement
JosepRivaille

P65437: Intercanvi

Mar 14th, 2015
911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.11 KB | None | 0 0
  1. //Intercanvia el valor de a pel valor de b
  2. void swap2(int& a, int& b) {
  3.     int aux;
  4.     aux = a;
  5.     a = b;
  6.     b = aux;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement