for(j=0;i<50;i++) //use i not j,
{
printf("Input %d is %s\n",i,namearr[i]);
}



Should help some.