static void remplir(out int[] tab)
{
tab=null;
string reponse;
bool trouve = false;
int i=0;
while(!trouve)
{
i++;
reponse=console.readline();
if(reponse=="")break;
x=int.parse(reponse);
array.resize(i,ref tab);
tab[i-1]=x;
what I could not understand is
tab[i-1]=x;
why i-1 while the dimention became i=1 ??
whan i compile and do tab[i]=x;
thy told me that out of range exception has been generated !
thank you guys for help !