Distinguish between continue and break statement?
Answer / Sushil Dayal
In C#, both continue and break statements are used in loops for control flow. However, they operate differently:n- Continue: When encountered within a loop, the current iteration is ended immediately, and the next iteration begins.n- Break: When encountered within a loop, the entire loop is terminated, and the program continues with the following statement outside the loop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why is it called c sharp?
What is method in c#?
what are the bugs are faced in a project
Which attribute is used in order that the method can be used as webservice?
What is difference between === and ==?
Is list ienumerable c#?
What is the purpose of namespace?
How would you describe encapsulation in c#?
Can we maintain state in webservice?
What is reflection in c#?
What is a float?
Does C# support multiple inheritance?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)