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
Microsoft Office Access Can't Find the Object
ESX 4.1 secuity best practices
Cannot delete all files from search
SPFile, PFile and Init
Can you subnet 1 public address or only a Class A, B or C network?
Microsoft Flight Simulator X
How to open the DetailsView in Insert Mode
Automatically sending email with attachment script on Outlook 2003
Spam questions in Exchange
can you install visual studio and sql server through VMware on Apple Macbook Pro