Re: Variable Scope
| From: | Ard Biesheuvel | Date: | Sat, 30 Aug 2003 23:59:22 +0000 |
| Subject: | Re: Variable Scope | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4294@lists.php.net to get a copy of this message | ||
for (int i = 0; i < 5; i++)
{
int num = array[i];
printf("%d", num);
for (int i = 0; i < 5; i++)
printf("%d", i * num);
}
I'll try to explain it in your own language.
no declarations inside for() in C ===> your example ===> *crap*
loose typing ===> no declarations ===> 'masking out' _IMPOSSIBLE_