A
apropo
int main(void)
{
int v[5];
int i,j,tmp;
for(i=0;i<5;i++)
{
printf("v[%d]:",i+1);
scanf("%d",&v);
}
for(i=0;i<7;i++)
if(v=='\0')
{
printf("END at %d",i);
break;
}
getch();
return 0;
}
EOF
could anyone explain me ? is there a \0 at the end or not ?
{
int v[5];
int i,j,tmp;
for(i=0;i<5;i++)
{
printf("v[%d]:",i+1);
scanf("%d",&v);
}
for(i=0;i<7;i++)
if(v=='\0')
{
printf("END at %d",i);
break;
}
getch();
return 0;
}
EOF
could anyone explain me ? is there a \0 at the end or not ?