anonymous
  • anonymous
The following for-loop is an infinite loop. for (int j = 0; j < 1000; i++ ) is this true or false
Computer Science
katieb
  • katieb
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
well, yes, unless that i there is a typo.
anonymous
  • anonymous
it's false no because this loop will print 999 times , not infinite time no
anonymous
  • anonymous
but it's i that increases, not j, right?

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
umm not increase no cause it given limit no, when it is infinite j>1000 and j=1000
anonymous
  • anonymous
oh...so that i is a typo then. for (int j = 0; j < 1000; i++ ) <--infinite for (int j = 0; j < 1000; j++ ) <--not infinite
anonymous
  • anonymous
okay then The following for-loop is an infinite loop. for (int j = 0; j < 1000; i++ ) false no
anonymous
  • anonymous
beacuse it is not infinite loop no
anonymous
  • anonymous
(int j = 0; j < 1000; j++ ) is not an infinite loop. yup. look closely though... ^ <--this part here
anonymous
  • anonymous
okay thanx :)
anonymous
  • anonymous
you're welcome :) though you could just try to write a program and see if it works lol :P

Looking for something else?

Not the answer you are looking for? Search for more explanations.