[Courses] [C] Beginner's Lesson 4B: Arrays, Qualifiers, and Reading Numbers
Kathryn Hogg
kjh at flyballdogs.com
Fri Oct 11 13:44:45 EST 2002
> Note that
> C _only_ allow variables to be declared at the beginning of the
> function.
Umm, other than the beginning of a function you can declare variables at
the beginning of a basic block or in the global block:
extern int zzz;
int f()
{
if (zzz != 0) {
extern int yyy;
printf("%d\n", yyy);
}
return 0;
}
--
Kathryn
More information about the Courses
mailing list