adspace


Distinguish between continue and break statement?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is expression tree in c#?

1004


How do you inherit a class into other class in c#?

999


Which namespaces are necessary to create a localized application?

1147


Why can't we use a static class instead of singleton?

962


How to assign Null value to Var?

1071


What is an abstract class c#?

973