Microsoft
Software
Hardware
Network
Question : Need help understanding break
Say I have 2 nested for loops such that:
for (.....)
{
for (....)
{
if (....)
{
break;
}
}
}
If the "if condition" in the 2nd for loop is met....what happens? Does the 2nd for loop stop running and control returns back to the 1st for loop?
Or does break stop both for loops such that control returns to the next line of code after the last parentheses?
Answer : Need help understanding break
>>If the "if condition" in the 2nd for loop is met....what happens?
The innermost loop will be terminated, whereas the outer one continues to run.
Random Solutions
pass me a number and return the text
If I don't fill in all text fields, then the ones I left blank insert as empty records
C# Threading Issue
Server folder syncing software that has a scheduler and hosts multiple targets
Any web-designers use a test site?
what could cause a laptop to white screen?
Session is not sticking
domain name question
Best Location to place site on dedicated server
deleting thousands of files across thousands of sub folders in windows server 2008