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
Format Date Value in column
Cisco ASA, allowing Windows domain controller and exchange through two different dmz's
How to un-freez the Properties screen
What is the maximum safe temperature for a non-running computer?
How can I close a splash screen during the main form's Load event?
Disable Apache documentation and Mailman on my shared plesk hosting account
Sql script to calc an avarage reading past sales
how to remote wipe iPad from Exchaneg 2007 server?
Order by within order by
User_Segments