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 a word in an external .txt and get into my VC++ code?
Change AD password in OWA
Roaming Profiles - Replacing Windows XP Pro workstations with Windows 7 workstations.
Access 2007 can read Sql database but can not update
Formatting a Hard Drive with sensitive data
PHP sql statements
Laptop action keys not functioning on debian
Adding Exchange to an existing POP in Outlook
DTS not running in job - SQL 2008
Access - time delivery of a built in macro