Borrar Elemento

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

BORRAR ELEMENTO: |

------------------------------------------------------------------|
void BorrarElemento(int x[MAX], int n, int elem, int c[MAX]){ |
int i,j=0; |
while(j<n-1){ |
for(i=0;i<n;i++){ |
if(x[i] != elem){ |
c[j]=x[i]; |
j++; |
} |
} |
} |
} |
------------------------------------------------------------------|

You might also like