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
Portable Powerful Server
Combine Sheets in Workbook
select records
ASA 5505 not conecting to Intenet
Active Directory Logout Logged on Users
basic physics - pushing box up a hill
Windows 7 Home not accessing the internet
From a landline number to a cell phone
C++ HugeInt - trouble with size
PHP - No results show for If else statement