declaring variable
John Hascall
hascall at atanasoff.cs.iastate.edu
Tue Apr 11 23:58:39 AEST 1989
In article <16969 at cup.portal.com> Kevin_P_McCarty at cup.portal.com writes:
>--test1.c----------
> double A,
> B,
> fooY,
> fooX,
> whelp;
> WhatAmI,
> AndMoreVariables;
To quote from K&R, appendix A, section 8.2, "Type Specifiers":
If the type-specifier is missing from a declaration, it
is taken to be int.
This seems like one "feature" we could afford to lose (IMHO).
How, (I'm sure you'll tell me :-), do you (does the compiler) tell:
WhatAmI , AndMoreVariables ;
| | \
expr. comma expression
operator
from:
WhatAmI , AndMoreVariables ;
| | | \
assumed ident comma identifier
type int
John Hascall / ISU Comp Center
More information about the Comp.lang.c
mailing list