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
Find and Replace hundreds of line of VBScript code via SQL statement
SQL TRIM duplicated Training characters
Have Flex application read WordPress username
Solarwinds IP Address Tracker crashing on Windows 7
select count(distinct *)
Can I turn my Linux WiFi card into a Wireless Router?
Could i setup a div with so i could place my buttons vertically
Cannot get DateDiff query to work
Outlook doesn't show signature when sending attachments.
C# - Convert byte[] to bit mask