Skip to content

Instantly share code, notes, and snippets.

@pizenblues
Created October 21, 2014 01:57
Show Gist options
  • Save pizenblues/1e4036232f84eb4066fc to your computer and use it in GitHub Desktop.
Save pizenblues/1e4036232f84eb4066fc to your computer and use it in GitHub Desktop.
int ELIMINAR(int *vector){
if(_CONTADOR == 0){
printf("COLA VACIA\n");
return -1;
}
int dato = vector[0];
_CONTADOR--;
for (int i = 0; i < _CONTADOR; i++){
vector[i] = vector[i+1];
}
return dato; // devuelvelo para mensajes, "se elimino el item X"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment