cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
loop
loop
Sep 30, 2017 at 10:00pm UTC
coder700
(2)
void math(array[10])
{
for (int i = -10; i > 10; i++)
{
cout << array[i];
}
}
Last edited on
Oct 1, 2017 at 1:46am UTC
Sep 30, 2017 at 10:04pm UTC
Peter87
(11178)
i
is never greater than 10 so the loop never runs.
Sep 30, 2017 at 10:16pm UTC
coder700
(2)
Hey, thanks, I fixed that
Last edited on
Oct 1, 2017 at 1:46am UTC
Sep 30, 2017 at 11:22pm UTC
Peter87
(11178)
What if one of the array elements is null?
Topic archived. No new replies allowed.