24.07.2011, 23:25
Quote:
Vince said break is same as return 0 but also goes to first line of the loop.
|
pawn Код:
for (new a = 0; a < 3; a++)
{
if (a == 1) break; //called
printf("a = %d", a);
}
//Will be called next
for (new a = 0; a < 3; a++)
{
if (a == 1) return 0; //called
printf("a = %d", a);
}
//Won't be called at all as the callback / function has been given a return value.