C# Programming - Control Instructions - Discussion
Discussion Forum : Control Instructions - General Questions (Q.No. 10)
10.
Which of the following can be used to terminate a while loop and transfer control outside the loop?
- exit while
- continue
- exit statement
- break
- goto
Discussion:
4 comments Page 1 of 1.
Sekharreddy said:
1 decade ago
What is the enum?
Kareem said:
9 years ago
Please any one explain me why the break and goto statemets is terminate a while loop and transfer control outside the loop.
Sunshine said:
9 years ago
I guess in this example terminate means to exit a while loop, and break and goto statements do that. And when you exit the loop, of course, are outside of that loop which means transferring control outside the loop.
Krish said:
6 years ago
I guess in this example, terminate means to exit a while loop, and break and goto statements do that. And when you exit the loop, of course, are outside of that loop which means transferring control outside the loop.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers