So we can categorized the main type of loop techniques that are use in C# as follows.
1. do-while loop
2. while loop
3. for loop
Interrupting Loops
Some times you want finger-grained control over the processing of looping code. There are 4 kinds of command in C# to do that task.
1. break - Causes the loop to end immediately
2. continue - Causes the current loop cycle to end immediately
3. goto - Allows jumping out of a loop to a labeled position
4. return - Jumps out of the loop and its containing function
2. while loop
3. for loop
Interrupting Loops
Some times you want finger-grained control over the processing of looping code. There are 4 kinds of command in C# to do that task.
1. break - Causes the loop to end immediately
2. continue - Causes the current loop cycle to end immediately
3. goto - Allows jumping out of a loop to a labeled position
4. return - Jumps out of the loop and its containing function
2 comments:
Nice informative stuff.
Wow. it is a great job. Keep it up.
Post a Comment