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
Split specific Cross tab table rows based on criteria - keeping all other column data intact.
Offline file missing - synchronisation failing for some files
Regular Expression to create spacing / new lines
Remotely changing app pool identity
Excel VBA create Outlook Email format
how do i get my vmware working on my optiplex 755
2003 pdc holding all fsmo roles crashed; ad rebuilding indices; server is enterprise cert server
connecting to a windows 2003 file share from a mac, folders are empty
How to repair install Windows 7 Professional?
Installing Bacula Server on Windows XP