Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

The following for-loop is an infinite loop. for (int j = 0; j < 1000; i++ ) is this true or false

Computer Science
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.

Join Brainly to access

this expert answer

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

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

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

Not the answer you are looking for?

Search for more explanations.

Ask your own question