loop



void math(array[10])
{
for (int i = -10; i > 10; i++)
{
cout << array[i];

}
}
Last edited on
i is never greater than 10 so the loop never runs.
Hey, thanks, I fixed that
Last edited on
What if one of the array elements is null?
Topic archived. No new replies allowed.