Question:

What is the difference between “continue” and “break” statements in C#?

Answer:

  • “continue” statement is used to pass the control to next iteration. This statement can be used with – “while”, “for”, “foreach” loops.
  • “break” statement is used to exit the loop.

Keywords:

© 2017 QuizBucket.org