Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the difference between “continue” and “break” statements in C#?
Home
C Sharp
What is the difference between “continue” and “break” statements in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
What is the difference between “continue” and “break” statements in C#?
continue-c#
break-c#
c#-break
c#-continue
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
“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.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Explain difference between "continue" and "break" statements in C#?
asked
Feb 16, 2020
in
C Sharp
by
rahuljain1
#c#-continue
0
votes
Q: What are break and continue statements in Javascript?
asked
Oct 4, 2023
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
+1
vote
Q: What is the difference between Continue and Break Statement?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#chash
#basicc#
0
votes
Q: Why do we need break and continue in Python?
asked
May 11, 2023
in
Python Flask
by
sharadyadav1986
breakpython
continue-python
0
votes
Q: Can we use a break and continue together in Python? How?
asked
Oct 11, 2021
in
Python
by
rajeshsharma
continue-
break
Python-questions-answers
0
votes
Q: Explain the functionality of “break,” “continue,” and “pass.”
asked
Sep 24, 2021
in
Python
by
Robin
continue
break
pass
Python-questions-answers
0
votes
Q: What is the difference between method overloading and method overriding in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#method-overloading
0
votes
Q: What is the difference between dispose() and finalize() methods in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#dispose
#finalize-method
+1
vote
Q: What is the difference between abstract class and interface in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#abstract-class
0
votes
Q: What is the difference between early binding and late binding in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#c-binding
#class-binding
...