type *var -- vs. -- type* var
Richard O'Keefe
ok at cs.mu.oz.au
Sat Sep 9 20:35:05 AEST 1989
In article <29048 at news.Think.COM>, barmar at think.COM (Barry Margolin) writes:
> That's because "*" binds more tightly than ",". If you want to force
> a particular grouping, use parentheses:
> (int *) x, y, z
I like it. I like it a lot. But
cat >zabbo.c <<end_of_file.
(int *) x, y, z;
main() { x = 0, y = 0, z = 0; exit(0); }
end_of_file.
gcc -ansi -pedantic zabbo.c
run on a Sun-3/50 under SunOS 4.0 using gcc version 1.35 starts out
zabbo.c:1: parse error before `int'
Are you _sure_ this is legal?
More information about the Comp.lang.c
mailing list