Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!eru!hagbard!sunic!nuug!ifi!enag From: enag@ifi.uio.no (Erik Naggum) Newsgroups: comp.lang.c Subject: Re: Difference between "char *arr" and "char arr[]" Message-ID: Date: 3 Oct 90 00:35:37 GMT References: <8103@aggie.ucdavis.edu> <26680@mimsy.umd.edu> <7920@scolex.sco.COM> Sender: enag@ifi.uio.no (Erik Naggum) Organization: Naggum Software, Oslo, Norway Lines: 28 Nntp-Posting-Host: hild.ifi.uio.no In-Reply-To: seanf@sco.COM's message of 26 Sep 90 21:05:12 GMT Originator: enag@hild In article <7920@scolex.sco.COM> seanf@sco.COM (Sean Fagan) writes: In article enag@ifi.uio.no (Erik Naggum) writes: >Rather, "char arr[14]" declares an array, but "extern char arr[]" only >declares that "arr" is some constant pointer the value of which is to >be resolved by the linker. *NO NO NO NO*! 'extern char arr[]' does *not* declare, in any way, shape, or form, a pointer. I'm sorry for all the confusion my severely overloaded use of "constant" has caused. I have been corrected by what seems like all the ANSI C programmers in the known and not-so-known universe, and they all point out that we have a "char * const ptr" construct, which I have always thought was a horrible abomination, and thus totally forgot that people could think I meant. Other than this unfortunate choice of words, we all agree. Relax, all. My mailbox is off limits, already. Next time I want to overload, I'll post to comp.lang.c++. -- [Erik Naggum] Naggum Software; Gaustadalleen 21; 0371 OSLO; NORWAY I disclaim, , therefore I post. +47-295-8622, +47-256-7822, (fax) +47-260-4427