Mail Archives: djgpp/1998/01/15/11:12:23
HackerOC3 wrote:
>
> printf("y value?");
> int y;
> scanf(" %d", &y);
> printf("color value?");
> int c;
> scanf(" %d", &c);
This is invalid code, the valid one is :
int func()
{
printf("y value?");
{
int y;
scanf(" %d", &y);
}
printf("color value?");
{
int c;
scanf(" %d", &c);
}
}
--
____ ____
| \ / Dim Zegebart
____/____
Moscow Russia
WWW - http://www.geocities.com/siliconvalley/pines/7817
DZcomm - comm library for Allegro
Palantir - multytasking kernel for Allegro (based on PDMLWP)
- Raw text -