Organize by order #26

Merged
cromer merged 2 commits from changeorder into master 2018-11-17 17:12:04 -03:00
Showing only changes of commit 6ff4147448 - Show all commits

View File

@ -19,7 +19,10 @@
* @param yp Segundo valor
*/
void swap(int *xp, int *yp) {
int temp = *xp;
*xp = *yp;
*yp = temp;
if (xp == yp) {
return;
}
*xp = *xp + *yp;
*yp = *xp - *yp;
*xp = *xp - *yp;
}