Help...

Norman Diamond diamond at csl.sony.co.jp
Wed Oct 11 16:11:47 AEST 1989


In article <RANG.89Oct9215608 at derby.cs.wisc.edu> rang at cs.wisc.edu (Anton Rang) writes:

>There is no difference between "char h[]" and "char *h" in a
>declaration; they do exactly the same thing.

char h[];
h = malloc(27);   /* should generate an error message */

char *h;
h = malloc(27);   /* should work */

Mr. Rang's posting proceeded to give a reasonably correct answer to
someone's question, but this bit of nonsense was a poor start.

-- 
Norman Diamond, Sony Corp. (diamond%ws.sony.junet at uunet.uu.net seems to work)
  The above opinions are inherited by your machine's init process (pid 1),
  after being disowned and orphaned.  However, if you see this at Waterloo or
  Anterior, then their administrators must have approved of these opinions.



More information about the Comp.lang.c mailing list