Created
May 16, 2020 06:28
-
-
Save parzibyte/a8aba0fbbd8bce3ec6c62a248c0f23b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Simple función que intercambia dos variables por referencia. | |
Más información en: | |
https://parzibyte.me/blog/2018/09/20/funciones-referencia-valor-c/ | |
*/ | |
void intercambiar(int *a, int *b) { | |
int temporal = *a; | |
*a = *b; | |
*b = temporal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment