#include <stdio.h>
void erase(int *tab, int i, int n)
{
int a;
for(a =i-1 ;a<n-1;++a) tab[a] = tab[a+1];
tab[n-1] = NULL;
}
int main(void) {
int tab[5] = {2,3,4,5,7};
erase(tab,2,5);
int i ;
for(i
=0;i
<5;++i
) printf("%d",tab
[i
]); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgZXJhc2UoaW50ICp0YWIsIGludCBpLCBpbnQgbikKewogICAgaW50IGE7CiAgICBmb3IoYSA9aS0xIDthPG4tMTsrK2EpIHRhYlthXSA9IHRhYlthKzFdOwogICAgdGFiW24tMV0gPSBOVUxMOwp9CgppbnQgbWFpbih2b2lkKSB7CgkgCglpbnQgdGFiWzVdID0gezIsMyw0LDUsN307CiAgICAgZXJhc2UodGFiLDIsNSk7CiAgICBpbnQgaSA7CiAgICBmb3IoaSA9MDtpPDU7KytpKSBwcmludGYoIiVkIix0YWJbaV0pOwogICAgcmV0dXJuIDA7Cn0K