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
sqlserver.exe is RAM greedy.
add sequential number to field for query dataset
Different languages in GPO editor
photoshop CS3 16-bit image support problems - and are they addressed in CS5?
VPN between Sonicwall TZ2460 and Cisco 881
Stop Error 0x0000007e on Server 2003
How to make hp nx7300 start?
BlackBerry Issue MDS Services down everyweek.
How to delete all relationships between tables before deleting tables within Access using VBA?
Access 2007, adding date fields in a form