Created
October 7, 2019 00:46
-
-
Save parzibyte/4afa21f8fb7b761ad8d26c0493627b91 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