while loop and arrays

Im very stuck with my program, and I think its just syntax. I have a char array that is null terminated but I don't know the size of. im trying to run through all the elements in that array but I don't know how the syntax should look.
What I have is

while (Array[])
{
int i =0; // counter
Number[i] = Array[i];
i++
}

I want the loop to stop when it hits the null char. Can someone please tell me how to do this

1
2
3
4
5
6
int i=0; // counter

while (Array[i++])
{
  Number[i] = Array[i];
} 
Topic archived. No new replies allowed.