[Info-vax] Dave Cutler, Prism, DEC, Microsoft, etc.
toby
toby at telegraphics.com.au
Wed Dec 16 22:14:39 EST 2009
On Dec 16, 9:40 pm, JF Mezei <jfmezei.spam... at vaxination.ca> wrote:
> toby wrote:
> > In a standard C compiler where mystring is an array,
> > mystring , &mystring , or &mystring[0] are all the same pointer.
>
> In ANSI C, &mystring is not accepted.
My gcc 4.1.2 with -ansi -pedantic accepts it. It always gives a
warning, "assignment from incompatible pointer type".
e.g.
char a[], *p;
p = &a;
More information about the Info-vax
mailing list