bool foo()
{
bool b=false;
for (int i=0; i<10; ++i)
{
if (i==5)
{ b=true;
break;
}
}
return b;
}
// as opposed to:
bool bar()
{
for (int i=0; i<10; ++i)
{
if (i==5)
return true;
}
return false;
}
@ Mods: The message preview seems to have bugs, my (C, C++, C# was always depicted as (C, C, C#