Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
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
You can’t perform that action at this time.